ai4r 1.1 → 1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. data/README.rdoc +21 -20
  2. data/examples/decision_trees/id3_example.rb +3 -2
  3. data/examples/genetic_algorithm/genetic_algorithm_example.rb +6 -6
  4. data/examples/neural_network/backpropagation_example.rb +2 -2
  5. data/lib/ai4r/classifiers/classifier_helper.rb +54 -0
  6. data/lib/ai4r/classifiers/id3.rb +356 -0
  7. data/lib/ai4r/classifiers/one_r.rb +148 -0
  8. data/lib/ai4r/classifiers/prism.rb +231 -0
  9. data/lib/ai4r/classifiers/zero_r.rb +104 -0
  10. data/lib/ai4r/genetic_algorithm/genetic_algorithm.rb +272 -0
  11. data/lib/ai4r/neural_network/backpropagation.rb +271 -0
  12. data/site/build/tmp/locationmap.xml +14 -14
  13. data/site/build/tmp/output.xmap +23 -23
  14. data/site/build/tmp/pluginlist2fetchbuild.xml +144 -144
  15. data/site/build/tmp/plugins-1.xml +0 -11
  16. data/site/build/tmp/plugins-2.xml +54 -0
  17. data/site/build/tmp/projfilters.properties +41 -41
  18. data/site/build/webapp/WEB-INF/logs/core.log +681 -788
  19. data/site/build/webapp/WEB-INF/logs/error.log +281 -248
  20. data/site/build/webapp/WEB-INF/logs/sitemap.log +1015 -0
  21. data/site/src/documentation/content/xdocs/forum.html +9 -0
  22. data/site/src/documentation/content/xdocs/geneticAlgorithms.xml +82 -68
  23. data/site/src/documentation/content/xdocs/index.xml +47 -18
  24. data/site/src/documentation/content/xdocs/machineLearning.xml +10 -9
  25. data/site/src/documentation/content/xdocs/neuralNetworks.xml +60 -36
  26. data/site/src/documentation/content/xdocs/site.xml +8 -5
  27. data/site/src/documentation/content/xdocs/svn.xml +11 -1
  28. data/site/src/documentation/resources/images/Thumbs.db +0 -0
  29. data/site/src/documentation/resources/images/ai4r-logo.png +0 -0
  30. data/site/src/documentation/resources/images/genetic_algorithms_example.png +0 -0
  31. data/site/src/documentation/resources/images/jadeferret.png +0 -0
  32. data/site/src/documentation/resources/images/neural_network_example.png +0 -0
  33. data/site/src/documentation/resources/images/sub-dir/Thumbs.db +0 -0
  34. data/site/src/documentation/skinconf.xml +18 -18
  35. data/test/classifiers/id3_test.rb +206 -0
  36. data/test/classifiers/one_r_test.rb +62 -0
  37. data/test/classifiers/prism_test.rb +83 -0
  38. data/test/classifiers/zero_r_test.rb +48 -0
  39. data/test/genetic_algorithm/chromosome_test.rb +41 -38
  40. data/test/genetic_algorithm/genetic_algorithm_test.rb +64 -61
  41. data/test/neural_network/backpropagation_test.rb +20 -18
  42. metadata +109 -199
  43. data/lib/decision_tree/id3.rb +0 -354
  44. data/lib/genetic_algorithm/genetic_algorithm.rb +0 -268
  45. data/lib/neural_network/backpropagation.rb +0 -264
  46. data/site/build/site/en/broken-links.xml +0 -2
  47. data/site/build/site/en/downloads.html +0 -187
  48. data/site/build/site/en/downloads.pdf +0 -151
  49. data/site/build/site/en/geneticAlgorithms.html +0 -564
  50. data/site/build/site/en/geneticAlgorithms.pdf +0 -911
  51. data/site/build/site/en/images/ai4r-logo.png +0 -0
  52. data/site/build/site/en/images/built-with-forrest-button.png +0 -0
  53. data/site/build/site/en/images/c.png +0 -0
  54. data/site/build/site/en/images/c_wbn.png +0 -0
  55. data/site/build/site/en/images/c_wn.png +0 -0
  56. data/site/build/site/en/images/ero.gif +0 -0
  57. data/site/build/site/en/images/europe2.png +0 -0
  58. data/site/build/site/en/images/europe3.png +0 -0
  59. data/site/build/site/en/images/fitness.png +0 -0
  60. data/site/build/site/en/images/instruction_arrow.png +0 -0
  61. data/site/build/site/en/images/my_email.png +0 -0
  62. data/site/build/site/en/images/rubyforge.png +0 -0
  63. data/site/build/site/en/images/s.png +0 -0
  64. data/site/build/site/en/images/s_wbn.png +0 -0
  65. data/site/build/site/en/images/s_wn.png +0 -0
  66. data/site/build/site/en/images/sigmoid.png +0 -0
  67. data/site/build/site/en/images/t.png +0 -0
  68. data/site/build/site/en/images/t_wbn.png +0 -0
  69. data/site/build/site/en/images/t_wn.png +0 -0
  70. data/site/build/site/en/index.html +0 -258
  71. data/site/build/site/en/index.pdf +0 -306
  72. data/site/build/site/en/linkmap.html +0 -231
  73. data/site/build/site/en/linkmap.pdf +0 -94
  74. data/site/build/site/en/locationmap.xml +0 -72
  75. data/site/build/site/en/machineLearning.html +0 -325
  76. data/site/build/site/en/machineLearning.pdf +0 -337
  77. data/site/build/site/en/neuralNetworks.html +0 -446
  78. data/site/build/site/en/neuralNetworks.pdf +0 -604
  79. data/site/build/site/en/skin/CommonMessages_de.xml +0 -23
  80. data/site/build/site/en/skin/CommonMessages_en_US.xml +0 -23
  81. data/site/build/site/en/skin/CommonMessages_es.xml +0 -23
  82. data/site/build/site/en/skin/CommonMessages_fr.xml +0 -23
  83. data/site/build/site/en/skin/basic.css +0 -166
  84. data/site/build/site/en/skin/breadcrumbs-optimized.js +0 -90
  85. data/site/build/site/en/skin/breadcrumbs.js +0 -237
  86. data/site/build/site/en/skin/fontsize.js +0 -166
  87. data/site/build/site/en/skin/getBlank.js +0 -40
  88. data/site/build/site/en/skin/getMenu.js +0 -45
  89. data/site/build/site/en/skin/images/README.txt +0 -1
  90. data/site/build/site/en/skin/images/add.jpg +0 -0
  91. data/site/build/site/en/skin/images/built-with-forrest-button.png +0 -0
  92. data/site/build/site/en/skin/images/chapter.gif +0 -0
  93. data/site/build/site/en/skin/images/chapter_open.gif +0 -0
  94. data/site/build/site/en/skin/images/current.gif +0 -0
  95. data/site/build/site/en/skin/images/error.png +0 -0
  96. data/site/build/site/en/skin/images/external-link.gif +0 -0
  97. data/site/build/site/en/skin/images/fix.jpg +0 -0
  98. data/site/build/site/en/skin/images/forrest-credit-logo.png +0 -0
  99. data/site/build/site/en/skin/images/hack.jpg +0 -0
  100. data/site/build/site/en/skin/images/header_white_line.gif +0 -0
  101. data/site/build/site/en/skin/images/info.png +0 -0
  102. data/site/build/site/en/skin/images/instruction_arrow.png +0 -0
  103. data/site/build/site/en/skin/images/label.gif +0 -0
  104. data/site/build/site/en/skin/images/page.gif +0 -0
  105. data/site/build/site/en/skin/images/pdfdoc.gif +0 -0
  106. data/site/build/site/en/skin/images/poddoc.png +0 -0
  107. data/site/build/site/en/skin/images/printer.gif +0 -0
  108. data/site/build/site/en/skin/images/rc-b-l-15-1body-2menu-3menu.png +0 -0
  109. data/site/build/site/en/skin/images/rc-b-r-15-1body-2menu-3menu.png +0 -0
  110. data/site/build/site/en/skin/images/rc-b-r-5-1header-2tab-selected-3tab-selected.png +0 -0
  111. data/site/build/site/en/skin/images/rc-t-l-5-1header-2searchbox-3searchbox.png +0 -0
  112. data/site/build/site/en/skin/images/rc-t-l-5-1header-2tab-selected-3tab-selected.png +0 -0
  113. data/site/build/site/en/skin/images/rc-t-l-5-1header-2tab-unselected-3tab-unselected.png +0 -0
  114. data/site/build/site/en/skin/images/rc-t-r-15-1body-2menu-3menu.png +0 -0
  115. data/site/build/site/en/skin/images/rc-t-r-5-1header-2searchbox-3searchbox.png +0 -0
  116. data/site/build/site/en/skin/images/rc-t-r-5-1header-2tab-selected-3tab-selected.png +0 -0
  117. data/site/build/site/en/skin/images/rc-t-r-5-1header-2tab-unselected-3tab-unselected.png +0 -0
  118. data/site/build/site/en/skin/images/remove.jpg +0 -0
  119. data/site/build/site/en/skin/images/rss.png +0 -0
  120. data/site/build/site/en/skin/images/spacer.gif +0 -0
  121. data/site/build/site/en/skin/images/success.png +0 -0
  122. data/site/build/site/en/skin/images/txtdoc.png +0 -0
  123. data/site/build/site/en/skin/images/update.jpg +0 -0
  124. data/site/build/site/en/skin/images/valid-html401.png +0 -0
  125. data/site/build/site/en/skin/images/vcss.png +0 -0
  126. data/site/build/site/en/skin/images/warning.png +0 -0
  127. data/site/build/site/en/skin/images/xmldoc.gif +0 -0
  128. data/site/build/site/en/skin/menu.js +0 -48
  129. data/site/build/site/en/skin/note.txt +0 -50
  130. data/site/build/site/en/skin/print.css +0 -54
  131. data/site/build/site/en/skin/profile.css +0 -163
  132. data/site/build/site/en/skin/prototype.js +0 -1257
  133. data/site/build/site/en/skin/screen.css +0 -587
  134. data/site/build/site/en/svn.html +0 -223
  135. data/site/build/site/en/svn.pdf +0 -239
  136. data/site/build/site/en/wholesite.pdf +0 -1686
  137. data/site/build/tmp/brokenlinks.xml +0 -2
  138. data/site/build/tmp/cocoon-work/cache-dir/cocoon-ehcache-1.data +0 -0
  139. data/site/build/tmp/cocoon-work/cache-dir/cocoon-ehcache-1.index +0 -0
  140. data/test/decision_tree/id3_test.rb +0 -209
@@ -1,4 +1,4 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!--
3
3
  Licensed to the Apache Software Foundation (ASF) under one or more
4
4
  contributor license agreements. See the NOTICE file distributed with
@@ -14,16 +14,16 @@
14
14
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  See the License for the specific language governing permissions and
16
16
  limitations under the License.
17
- -->
18
- <locationmap xmlns="http://apache.org/forrest/locationmap/1.0" xmlns:lm="http://apache.org/forrest/locationmap/1.0">
19
- <components>
20
- <selectors default="exists">
21
- <selector name="exists" logger="sitemap.selector.exists" src="org.apache.forrest.sourceexists.SourceExistsSelector"/>
22
- </selectors>
23
- </components>
24
- <locator>
25
- <select>
26
- <mount src="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.pdf/locationmap.xml"/>
27
- </select>
28
- </locator>
29
- </locationmap>
17
+ -->
18
+ <locationmap xmlns="http://apache.org/forrest/locationmap/1.0" xmlns:lm="http://apache.org/forrest/locationmap/1.0">
19
+ <components>
20
+ <selectors default="exists">
21
+ <selector name="exists" logger="sitemap.selector.exists" src="org.apache.forrest.sourceexists.SourceExistsSelector"/>
22
+ </selectors>
23
+ </components>
24
+ <locator>
25
+ <select>
26
+ <mount src="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.pdf/locationmap.xml"/>
27
+ </select>
28
+ </locator>
29
+ </locationmap>
@@ -1,4 +1,4 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!--
3
3
  Licensed to the Apache Software Foundation (ASF) under one or more
4
4
  contributor license agreements. See the NOTICE file distributed with
@@ -14,25 +14,25 @@
14
14
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  See the License for the specific language governing permissions and
16
16
  limitations under the License.
17
- -->
18
- <!-- ============================================================ -->
19
- <!-- Plugin Sitemap -->
20
- <!-- -->
21
- <!-- This sitemap includes all enabled plugins in the generation -->
22
- <!-- process. It is mounted from the main Forrest sitemap after -->
23
- <!-- any project specific sitemap but before the default Forrest -->
24
- <!-- matchers. This enables plugins to override or extend default -->
25
- <!-- Forrest behaviour whilst individual projects can override -->
26
- <!-- or extend the plugins behaviour. -->
27
- <!-- ============================================================ -->
28
- <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
29
- <map:pipelines>
30
- <map:pipeline>
31
- <map:select type="exists">
32
- <map:when test="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.pdf/output.xmap">
33
- <map:mount uri-prefix="" src="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.pdf/output.xmap" check-reload="yes" pass-through="true"/>
34
- </map:when>
35
- </map:select>
36
- </map:pipeline>
37
- </map:pipelines>
38
- </map:sitemap>
17
+ -->
18
+ <!-- ============================================================ -->
19
+ <!-- Plugin Sitemap -->
20
+ <!-- -->
21
+ <!-- This sitemap includes all enabled plugins in the generation -->
22
+ <!-- process. It is mounted from the main Forrest sitemap after -->
23
+ <!-- any project specific sitemap but before the default Forrest -->
24
+ <!-- matchers. This enables plugins to override or extend default -->
25
+ <!-- Forrest behaviour whilst individual projects can override -->
26
+ <!-- or extend the plugins behaviour. -->
27
+ <!-- ============================================================ -->
28
+ <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
29
+ <map:pipelines>
30
+ <map:pipeline>
31
+ <map:select type="exists">
32
+ <map:when test="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.pdf/output.xmap">
33
+ <map:mount uri-prefix="" src="{forrest:forrest.plugins}/org.apache.forrest.plugin.output.pdf/output.xmap" check-reload="yes" pass-through="true"/>
34
+ </map:when>
35
+ </map:select>
36
+ </map:pipeline>
37
+ </map:pipelines>
38
+ </map:sitemap>
@@ -1,144 +1,144 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project default="fetchplugin">
3
- <target name="fetchplugin" depends="fetch-local-unversioned-plugin, fetch-remote-unversioned-plugin-version-forrest,fetch-remote-unversioned-plugin-unversion-forrest, final-check"/>
4
- <target name="fetch-local-versioned-plugin">
5
- <antcallback return="plugin-found" target="get-local">
6
- <param name="local-plugin-version" value="-"/>
7
- <param name="local-plugin-name" value="org.apache.forrest.plugin.output.pdf"/>
8
- </antcallback>
9
- </target>
10
- <target unless="plugin-found" name="fetch-remote-versioned-plugin-version-forrest">
11
- <antcallback return="plugin-found,desired.plugin.zip.present" target="download">
12
- <param name="download-plugin-version" value="-"/>
13
- <param name="download-plugin-name" value="org.apache.forrest.plugin.output.pdf"/>
14
- <param name="download-forrest-version" value="0.8/"/>
15
- </antcallback>
16
- </target>
17
- <target unless="plugin-found" name="fetch-local-unversioned-plugin">
18
- <antcallback return="plugin-found" target="get-local">
19
- <param value="" name="local-plugin-version"/>
20
- <param name="local-plugin-name" value="org.apache.forrest.plugin.output.pdf"/>
21
- </antcallback>
22
- </target>
23
- <target unless="plugin-found" name="fetch-remote-unversioned-plugin-version-forrest">
24
- <antcallback return="plugin-found,desired.plugin.zip.present" target="download">
25
- <param value="" name="download-plugin-version"/>
26
- <param name="download-plugin-name" value="org.apache.forrest.plugin.output.pdf"/>
27
- <param name="download-forrest-version" value="0.8/"/>
28
- </antcallback>
29
- </target>
30
- <target unless="plugin-found" name="fetch-remote-unversioned-plugin-unversion-forrest">
31
- <antcallback return="plugin-found,desired.plugin.zip.present" target="download">
32
- <param value="" name="download-plugin-version"/>
33
- <param name="download-plugin-name" value="org.apache.forrest.plugin.output.pdf"/>
34
- <param value="" name="download-forrest-version"/>
35
- </antcallback>
36
- </target>
37
- <target name="get-local">
38
- <echo>Trying to locally get ${local-plugin-name}${local-plugin-version}</echo>
39
- <trycatch property="plugin-found">
40
- <try>
41
- <for param="plugin-src-dir" list="/usr/local/forrest/plugins,/usr/local/forrest/whiteboard/plugins">
42
- <sequential>
43
- <echo>Looking in local @{plugin-src-dir}</echo>
44
- <if>
45
- <available type="dir" property="plugin.src.present" file="@{plugin-src-dir}/${local-plugin-name}${local-plugin-version}"/>
46
- <then>
47
- <echo message="Found !"/>
48
- <ant target="local-deploy" antfile="@{plugin-src-dir}/${local-plugin-name}${local-plugin-version}/build.xml" dir="@{plugin-src-dir}/${local-plugin-name}${local-plugin-version}">
49
- <property value="true" name="no.echo.init"/>
50
- </ant>
51
- <fail/>
52
- </then>
53
- </if>
54
- </sequential>
55
- </for>
56
- </try>
57
- <catch>
58
- <echo>Plugin ${local-plugin-name}${local-plugin-version} deployed ! Ready to configure</echo>
59
- </catch>
60
- </trycatch>
61
- </target>
62
- <target depends="keep-original-zip,get-from-remote-site,is-downloaded,remove-original-zip" name="download"/>
63
- <target if="original.zip.exists" depends="available-original-zip" name="keep-original-zip">
64
- <copy preservelastmodified="true" file="/usr/local/forrest/build/plugins/${download-plugin-name}.zip" tofile="/usr/local/forrest/build/plugins/${download-plugin-name}.zip.orig"/>
65
- </target>
66
- <target name="available-original-zip">
67
- <available property="original.zip.exists" file="/usr/local/forrest/build/plugins/${download-plugin-name}.zip"/>
68
- </target>
69
- <target name="get-from-remote-site">
70
- <echo>Tying to download ${download-plugin-name}${download-plugin-version} from the distribution site ...</echo>
71
- <if>
72
- <not>
73
- <equals arg2="" arg1="${download.forrest.version}"/>
74
- </not>
75
- <then>
76
- <echo>Using Forrest version : ${download-forrest-version}</echo>
77
- </then>
78
- </if>
79
- <get ignoreerrors="true" usetimestamp="true" verbose="true" src="http://forrest.apache.org/plugins//${download-forrest-version}${download-plugin-name}${download-plugin-version}.zip" dest="/usr/local/forrest/build/plugins/${download-plugin-name}.zip"/>
80
- <available property="desired.plugin.zip.present" file="/usr/local/forrest/build/plugins/${download-plugin-name}.zip"/>
81
- <condition property="plugin-found">
82
- <and>
83
- <isset property="desired.plugin.zip.present"/>
84
- <not>
85
- <isset property="original.zip.exists"/>
86
- </not>
87
- </and>
88
- </condition>
89
- </target>
90
- <target if="original.zip.exists" name="is-downloaded">
91
- <uptodate property="no-difference-found" srcfile="/usr/local/forrest/build/plugins/${download-plugin-name}.zip" targetfile="/usr/local/forrest/build/plugins/${download-plugin-name}.zip.orig"/>
92
- <if>
93
- <not>
94
- <isset property="no-difference-found"/>
95
- </not>
96
- <then>
97
- <property value="true" name="plugin-found"/>
98
- </then>
99
- </if>
100
- </target>
101
- <target if="original.zip.exists" name="remove-original-zip">
102
- <delete file="/usr/local/forrest/build/plugins/${download-plugin-name}.zip.orig"/>
103
- </target>
104
- <target depends="has-been-downloaded,downloaded-message,uptodate-message,not-found-message" name="final-check"/>
105
- <target if="desired.plugin.zip.present" name="has-been-downloaded">
106
- <condition property="up-to-date">
107
- <not>
108
- <isset property="plugin-found"/>
109
- </not>
110
- </condition>
111
- <condition property="downloaded">
112
- <isset property="plugin-found"/>
113
- </condition>
114
- </target>
115
- <target if="downloaded" name="downloaded-message">
116
- <echo>Plugin org.apache.forrest.plugin.output.pdf downloaded ! Ready to install</echo>
117
- </target>
118
- <target if="up-to-date" name="uptodate-message">
119
- <echo>Plugin org.apache.forrest.plugin.output.pdf was up-to-date ! Ready to configure</echo>
120
- <property value="true" name="plugin-found"/>
121
- </target>
122
- <target unless="desired.plugin.zip.present" name="not-found-message">
123
- <fail>
124
- Unable to download the
125
- "org.apache.forrest.plugin.output.pdf" plugin
126
-
127
- or an equivalent unversioned plugin
128
- from http://forrest.apache.org/plugins/
129
- There are a number of possible causes for this:
130
-
131
- One possible problem is that you do not have write access to
132
- FORREST_HOME, in which case ask your system admin to install the
133
- required Forrest plugin as described below.
134
-
135
- A further possibility is that Forrest may be unable to connect to
136
- the plugin distribution server. Again the solution is to manually
137
- install the plugin.
138
-
139
- To manually install a plugin, download the plugin zip file from
140
- http://forrest.apache.org/plugins/ and
141
- extract it into
142
- /usr/local/forrest/build/plugins/org.apache.forrest.plugin.output.pdf</fail>
143
- </target>
144
- </project>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project default="fetchplugin">
3
+ <target name="fetchplugin" depends="fetch-local-unversioned-plugin, fetch-remote-unversioned-plugin-version-forrest,fetch-remote-unversioned-plugin-unversion-forrest, final-check"/>
4
+ <target name="fetch-local-versioned-plugin">
5
+ <antcallback return="plugin-found" target="get-local">
6
+ <param name="local-plugin-version" value="-"/>
7
+ <param name="local-plugin-name" value="org.apache.forrest.plugin.output.pdf"/>
8
+ </antcallback>
9
+ </target>
10
+ <target unless="plugin-found" name="fetch-remote-versioned-plugin-version-forrest">
11
+ <antcallback return="plugin-found,desired.plugin.zip.present" target="download">
12
+ <param name="download-plugin-version" value="-"/>
13
+ <param name="download-plugin-name" value="org.apache.forrest.plugin.output.pdf"/>
14
+ <param name="download-forrest-version" value="0.8/"/>
15
+ </antcallback>
16
+ </target>
17
+ <target unless="plugin-found" name="fetch-local-unversioned-plugin">
18
+ <antcallback return="plugin-found" target="get-local">
19
+ <param value="" name="local-plugin-version"/>
20
+ <param name="local-plugin-name" value="org.apache.forrest.plugin.output.pdf"/>
21
+ </antcallback>
22
+ </target>
23
+ <target unless="plugin-found" name="fetch-remote-unversioned-plugin-version-forrest">
24
+ <antcallback return="plugin-found,desired.plugin.zip.present" target="download">
25
+ <param value="" name="download-plugin-version"/>
26
+ <param name="download-plugin-name" value="org.apache.forrest.plugin.output.pdf"/>
27
+ <param name="download-forrest-version" value="0.8/"/>
28
+ </antcallback>
29
+ </target>
30
+ <target unless="plugin-found" name="fetch-remote-unversioned-plugin-unversion-forrest">
31
+ <antcallback return="plugin-found,desired.plugin.zip.present" target="download">
32
+ <param value="" name="download-plugin-version"/>
33
+ <param name="download-plugin-name" value="org.apache.forrest.plugin.output.pdf"/>
34
+ <param value="" name="download-forrest-version"/>
35
+ </antcallback>
36
+ </target>
37
+ <target name="get-local">
38
+ <echo>Trying to locally get ${local-plugin-name}${local-plugin-version}</echo>
39
+ <trycatch property="plugin-found">
40
+ <try>
41
+ <for param="plugin-src-dir" list="C:\Development\apache-forrest-0.8/plugins,C:\Development\apache-forrest-0.8/whiteboard/plugins">
42
+ <sequential>
43
+ <echo>Looking in local @{plugin-src-dir}</echo>
44
+ <if>
45
+ <available type="dir" property="plugin.src.present" file="@{plugin-src-dir}/${local-plugin-name}${local-plugin-version}"/>
46
+ <then>
47
+ <echo message="Found !"/>
48
+ <ant target="local-deploy" antfile="@{plugin-src-dir}/${local-plugin-name}${local-plugin-version}/build.xml" dir="@{plugin-src-dir}/${local-plugin-name}${local-plugin-version}">
49
+ <property value="true" name="no.echo.init"/>
50
+ </ant>
51
+ <fail/>
52
+ </then>
53
+ </if>
54
+ </sequential>
55
+ </for>
56
+ </try>
57
+ <catch>
58
+ <echo>Plugin ${local-plugin-name}${local-plugin-version} deployed ! Ready to configure</echo>
59
+ </catch>
60
+ </trycatch>
61
+ </target>
62
+ <target depends="keep-original-zip,get-from-remote-site,is-downloaded,remove-original-zip" name="download"/>
63
+ <target if="original.zip.exists" depends="available-original-zip" name="keep-original-zip">
64
+ <copy preservelastmodified="true" file="C:\Development\apache-forrest-0.8\build\plugins/${download-plugin-name}.zip" tofile="C:\Development\apache-forrest-0.8\build\plugins/${download-plugin-name}.zip.orig"/>
65
+ </target>
66
+ <target name="available-original-zip">
67
+ <available property="original.zip.exists" file="C:\Development\apache-forrest-0.8\build\plugins/${download-plugin-name}.zip"/>
68
+ </target>
69
+ <target name="get-from-remote-site">
70
+ <echo>Tying to download ${download-plugin-name}${download-plugin-version} from the distribution site ...</echo>
71
+ <if>
72
+ <not>
73
+ <equals arg2="" arg1="${download.forrest.version}"/>
74
+ </not>
75
+ <then>
76
+ <echo>Using Forrest version : ${download-forrest-version}</echo>
77
+ </then>
78
+ </if>
79
+ <get ignoreerrors="true" usetimestamp="true" verbose="true" src="http://forrest.apache.org/plugins//${download-forrest-version}${download-plugin-name}${download-plugin-version}.zip" dest="C:\Development\apache-forrest-0.8\build\plugins/${download-plugin-name}.zip"/>
80
+ <available property="desired.plugin.zip.present" file="C:\Development\apache-forrest-0.8\build\plugins/${download-plugin-name}.zip"/>
81
+ <condition property="plugin-found">
82
+ <and>
83
+ <isset property="desired.plugin.zip.present"/>
84
+ <not>
85
+ <isset property="original.zip.exists"/>
86
+ </not>
87
+ </and>
88
+ </condition>
89
+ </target>
90
+ <target if="original.zip.exists" name="is-downloaded">
91
+ <uptodate property="no-difference-found" srcfile="C:\Development\apache-forrest-0.8\build\plugins/${download-plugin-name}.zip" targetfile="C:\Development\apache-forrest-0.8\build\plugins/${download-plugin-name}.zip.orig"/>
92
+ <if>
93
+ <not>
94
+ <isset property="no-difference-found"/>
95
+ </not>
96
+ <then>
97
+ <property value="true" name="plugin-found"/>
98
+ </then>
99
+ </if>
100
+ </target>
101
+ <target if="original.zip.exists" name="remove-original-zip">
102
+ <delete file="C:\Development\apache-forrest-0.8\build\plugins/${download-plugin-name}.zip.orig"/>
103
+ </target>
104
+ <target depends="has-been-downloaded,downloaded-message,uptodate-message,not-found-message" name="final-check"/>
105
+ <target if="desired.plugin.zip.present" name="has-been-downloaded">
106
+ <condition property="up-to-date">
107
+ <not>
108
+ <isset property="plugin-found"/>
109
+ </not>
110
+ </condition>
111
+ <condition property="downloaded">
112
+ <isset property="plugin-found"/>
113
+ </condition>
114
+ </target>
115
+ <target if="downloaded" name="downloaded-message">
116
+ <echo>Plugin org.apache.forrest.plugin.output.pdf downloaded ! Ready to install</echo>
117
+ </target>
118
+ <target if="up-to-date" name="uptodate-message">
119
+ <echo>Plugin org.apache.forrest.plugin.output.pdf was up-to-date ! Ready to configure</echo>
120
+ <property value="true" name="plugin-found"/>
121
+ </target>
122
+ <target unless="desired.plugin.zip.present" name="not-found-message">
123
+ <fail>
124
+ Unable to download the
125
+ "org.apache.forrest.plugin.output.pdf" plugin
126
+
127
+ or an equivalent unversioned plugin
128
+ from http://forrest.apache.org/plugins/
129
+ There are a number of possible causes for this:
130
+
131
+ One possible problem is that you do not have write access to
132
+ FORREST_HOME, in which case ask your system admin to install the
133
+ required Forrest plugin as described below.
134
+
135
+ A further possibility is that Forrest may be unable to connect to
136
+ the plugin distribution server. Again the solution is to manually
137
+ install the plugin.
138
+
139
+ To manually install a plugin, download the plugin zip file from
140
+ http://forrest.apache.org/plugins/ and
141
+ extract it into
142
+ C:\Development\apache-forrest-0.8\build\plugins/org.apache.forrest.plugin.output.pdf</fail>
143
+ </target>
144
+ </project>
@@ -149,17 +149,6 @@
149
149
  <!-- ================================================================== -->
150
150
  <!-- Output Plugins -->
151
151
  <!-- ================================================================== -->
152
- <plugin name="org.apache.forrest.plugin.output.inputModule"
153
- type="output"
154
- author="Apache Forrest Project"
155
- website="http://forrest.apache.org/pluginDocs/plugins_0_80/org.apache.forrest.plugin.output.inputModule"
156
- url="http://forrest.apache.org/plugins/"
157
- version="0.1">
158
- <description>
159
- Enable Forrest to produce properties from an input-module.
160
- </description>
161
- <forrestVersion>0.8</forrestVersion>
162
- </plugin>
163
152
  <plugin name="org.apache.forrest.plugin.output.pdf"
164
153
  type="output"
165
154
  author="Apache Forrest Project"
@@ -158,6 +158,17 @@
158
158
  </description>
159
159
  <forrestVersion>0.8</forrestVersion>
160
160
  </plugin>
161
+ <plugin name="uk.ac.osswatch.forrest.input.sourceforge"
162
+ type="input"
163
+ author="OSS Watch"
164
+ website="http://simal.osswatch.ac.uk"
165
+ url="http://simal.google.com/files/"
166
+ version="0.1">
167
+ <description>
168
+ Extracts data from sourceforge.net.
169
+ </description>
170
+ <forrestVersion>0.8</forrestVersion>
171
+ </plugin>
161
172
  <plugin name="org.apache.forrest.plugin.input.skos"
162
173
  type="input"
163
174
  author="Apache Forrest Project"
@@ -169,6 +180,17 @@
169
180
  </description>
170
181
  <forrestVersion>0.8</forrestVersion>
171
182
  </plugin>
183
+ <plugin name="org.apache.forrest.plugin.input.baetle"
184
+ type="input"
185
+ author="Apache Forrest Project"
186
+ website="http://forrest.apache.org/pluginDocs/plugins_0_80/org.apache.forrest.plugin.input.baetle/"
187
+ url="http://forrest.apache.org/plugins"
188
+ version="0.1">
189
+ <description>
190
+ Rendering Baetle, the RDF vocabulary to describe the content of bug databases.
191
+ </description>
192
+ <forrestVersion>0.8</forrestVersion>
193
+ </plugin>
172
194
  <plugin name="org.apache.forrest.plugin.input.tei"
173
195
  type="input"
174
196
  author="Apache Forrest"
@@ -195,6 +217,17 @@
195
217
  <forrestVersion>0.8</forrestVersion>
196
218
  </plugin>
197
219
 
220
+ <plugin name="org.apache.forrest.plugin.input.XDoc"
221
+ type="input"
222
+ author="Apache Forrest Project"
223
+ website="http://forrest.apache.org/pluginDocs/plugins_0_80/org.apache.forrest.plugin.input.XDoc/"
224
+ url="http://forrest.apache.org/plugins"
225
+ version="0.1">
226
+ <description>
227
+ Input plugin for XDoc
228
+ </description>
229
+ <forrestVersion>0.8</forrestVersion>
230
+ </plugin>
198
231
 
199
232
  <!-- ================================================================== -->
200
233
  <!-- Output Plugins -->
@@ -304,6 +337,18 @@
304
337
  </description>
305
338
  <forrestVersion>0.8</forrestVersion>
306
339
  </plugin>
340
+
341
+ <plugin name="org.apache.forrest.plugin.output.OOo"
342
+ type="output"
343
+ author="Apache Forrest"
344
+ website="http://forrest.apache.org/pluginDocs/plugins_0_90/org.apache.forrest.plugin.output.OOo/"
345
+ url="http://forrest.apache.org/plugins/"
346
+ version="0.1">
347
+ <description>
348
+ Creates OpenOffice 2.4+ .odt output from forrest xdoc.
349
+ </description>
350
+ <forrestVersion>0.9</forrestVersion>
351
+ </plugin>
307
352
  <!-- ================================================================== -->
308
353
  <!-- Internal Plugins -->
309
354
  <!-- ================================================================== -->
@@ -344,4 +389,13 @@
344
389
  </description>
345
390
  <forrestVersion>0.8</forrestVersion>
346
391
  </plugin>
392
+ <plugin name="org.apache.forrest.plugin.internal.xhtml2" type="internal"
393
+ author="Apache Forrest Project"
394
+ website="http://forrest.apache.org/pluginDocs/plugins_0_90/org.apache.forrest.plugin.internal.xhtml2/"
395
+ url="http://forrest.apache.org/plugins" version="0.1">
396
+ <description> Forrest versions prior to 0.9 used XDoc as their internal format, versions
397
+ from 0.9 onwards are going to use a subset of XHTML2 instead. This plugin converts the
398
+ main forrest sitemaps to work with XHTML2. </description>
399
+ <forrestVersion>0.8</forrestVersion>
400
+ </plugin>
347
401
  </plugins>