ai4r 1.1 → 1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +21 -20
- data/examples/decision_trees/id3_example.rb +3 -2
- data/examples/genetic_algorithm/genetic_algorithm_example.rb +6 -6
- data/examples/neural_network/backpropagation_example.rb +2 -2
- data/lib/ai4r/classifiers/classifier_helper.rb +54 -0
- data/lib/ai4r/classifiers/id3.rb +356 -0
- data/lib/ai4r/classifiers/one_r.rb +148 -0
- data/lib/ai4r/classifiers/prism.rb +231 -0
- data/lib/ai4r/classifiers/zero_r.rb +104 -0
- data/lib/ai4r/genetic_algorithm/genetic_algorithm.rb +272 -0
- data/lib/ai4r/neural_network/backpropagation.rb +271 -0
- data/site/build/tmp/locationmap.xml +14 -14
- data/site/build/tmp/output.xmap +23 -23
- data/site/build/tmp/pluginlist2fetchbuild.xml +144 -144
- data/site/build/tmp/plugins-1.xml +0 -11
- data/site/build/tmp/plugins-2.xml +54 -0
- data/site/build/tmp/projfilters.properties +41 -41
- data/site/build/webapp/WEB-INF/logs/core.log +681 -788
- data/site/build/webapp/WEB-INF/logs/error.log +281 -248
- data/site/build/webapp/WEB-INF/logs/sitemap.log +1015 -0
- data/site/src/documentation/content/xdocs/forum.html +9 -0
- data/site/src/documentation/content/xdocs/geneticAlgorithms.xml +82 -68
- data/site/src/documentation/content/xdocs/index.xml +47 -18
- data/site/src/documentation/content/xdocs/machineLearning.xml +10 -9
- data/site/src/documentation/content/xdocs/neuralNetworks.xml +60 -36
- data/site/src/documentation/content/xdocs/site.xml +8 -5
- data/site/src/documentation/content/xdocs/svn.xml +11 -1
- data/site/src/documentation/resources/images/Thumbs.db +0 -0
- data/site/src/documentation/resources/images/ai4r-logo.png +0 -0
- data/site/src/documentation/resources/images/genetic_algorithms_example.png +0 -0
- data/site/src/documentation/resources/images/jadeferret.png +0 -0
- data/site/src/documentation/resources/images/neural_network_example.png +0 -0
- data/site/src/documentation/resources/images/sub-dir/Thumbs.db +0 -0
- data/site/src/documentation/skinconf.xml +18 -18
- data/test/classifiers/id3_test.rb +206 -0
- data/test/classifiers/one_r_test.rb +62 -0
- data/test/classifiers/prism_test.rb +83 -0
- data/test/classifiers/zero_r_test.rb +48 -0
- data/test/genetic_algorithm/chromosome_test.rb +41 -38
- data/test/genetic_algorithm/genetic_algorithm_test.rb +64 -61
- data/test/neural_network/backpropagation_test.rb +20 -18
- metadata +109 -199
- data/lib/decision_tree/id3.rb +0 -354
- data/lib/genetic_algorithm/genetic_algorithm.rb +0 -268
- data/lib/neural_network/backpropagation.rb +0 -264
- data/site/build/site/en/broken-links.xml +0 -2
- data/site/build/site/en/downloads.html +0 -187
- data/site/build/site/en/downloads.pdf +0 -151
- data/site/build/site/en/geneticAlgorithms.html +0 -564
- data/site/build/site/en/geneticAlgorithms.pdf +0 -911
- data/site/build/site/en/images/ai4r-logo.png +0 -0
- data/site/build/site/en/images/built-with-forrest-button.png +0 -0
- data/site/build/site/en/images/c.png +0 -0
- data/site/build/site/en/images/c_wbn.png +0 -0
- data/site/build/site/en/images/c_wn.png +0 -0
- data/site/build/site/en/images/ero.gif +0 -0
- data/site/build/site/en/images/europe2.png +0 -0
- data/site/build/site/en/images/europe3.png +0 -0
- data/site/build/site/en/images/fitness.png +0 -0
- data/site/build/site/en/images/instruction_arrow.png +0 -0
- data/site/build/site/en/images/my_email.png +0 -0
- data/site/build/site/en/images/rubyforge.png +0 -0
- data/site/build/site/en/images/s.png +0 -0
- data/site/build/site/en/images/s_wbn.png +0 -0
- data/site/build/site/en/images/s_wn.png +0 -0
- data/site/build/site/en/images/sigmoid.png +0 -0
- data/site/build/site/en/images/t.png +0 -0
- data/site/build/site/en/images/t_wbn.png +0 -0
- data/site/build/site/en/images/t_wn.png +0 -0
- data/site/build/site/en/index.html +0 -258
- data/site/build/site/en/index.pdf +0 -306
- data/site/build/site/en/linkmap.html +0 -231
- data/site/build/site/en/linkmap.pdf +0 -94
- data/site/build/site/en/locationmap.xml +0 -72
- data/site/build/site/en/machineLearning.html +0 -325
- data/site/build/site/en/machineLearning.pdf +0 -337
- data/site/build/site/en/neuralNetworks.html +0 -446
- data/site/build/site/en/neuralNetworks.pdf +0 -604
- data/site/build/site/en/skin/CommonMessages_de.xml +0 -23
- data/site/build/site/en/skin/CommonMessages_en_US.xml +0 -23
- data/site/build/site/en/skin/CommonMessages_es.xml +0 -23
- data/site/build/site/en/skin/CommonMessages_fr.xml +0 -23
- data/site/build/site/en/skin/basic.css +0 -166
- data/site/build/site/en/skin/breadcrumbs-optimized.js +0 -90
- data/site/build/site/en/skin/breadcrumbs.js +0 -237
- data/site/build/site/en/skin/fontsize.js +0 -166
- data/site/build/site/en/skin/getBlank.js +0 -40
- data/site/build/site/en/skin/getMenu.js +0 -45
- data/site/build/site/en/skin/images/README.txt +0 -1
- data/site/build/site/en/skin/images/add.jpg +0 -0
- data/site/build/site/en/skin/images/built-with-forrest-button.png +0 -0
- data/site/build/site/en/skin/images/chapter.gif +0 -0
- data/site/build/site/en/skin/images/chapter_open.gif +0 -0
- data/site/build/site/en/skin/images/current.gif +0 -0
- data/site/build/site/en/skin/images/error.png +0 -0
- data/site/build/site/en/skin/images/external-link.gif +0 -0
- data/site/build/site/en/skin/images/fix.jpg +0 -0
- data/site/build/site/en/skin/images/forrest-credit-logo.png +0 -0
- data/site/build/site/en/skin/images/hack.jpg +0 -0
- data/site/build/site/en/skin/images/header_white_line.gif +0 -0
- data/site/build/site/en/skin/images/info.png +0 -0
- data/site/build/site/en/skin/images/instruction_arrow.png +0 -0
- data/site/build/site/en/skin/images/label.gif +0 -0
- data/site/build/site/en/skin/images/page.gif +0 -0
- data/site/build/site/en/skin/images/pdfdoc.gif +0 -0
- data/site/build/site/en/skin/images/poddoc.png +0 -0
- data/site/build/site/en/skin/images/printer.gif +0 -0
- data/site/build/site/en/skin/images/rc-b-l-15-1body-2menu-3menu.png +0 -0
- data/site/build/site/en/skin/images/rc-b-r-15-1body-2menu-3menu.png +0 -0
- data/site/build/site/en/skin/images/rc-b-r-5-1header-2tab-selected-3tab-selected.png +0 -0
- data/site/build/site/en/skin/images/rc-t-l-5-1header-2searchbox-3searchbox.png +0 -0
- data/site/build/site/en/skin/images/rc-t-l-5-1header-2tab-selected-3tab-selected.png +0 -0
- data/site/build/site/en/skin/images/rc-t-l-5-1header-2tab-unselected-3tab-unselected.png +0 -0
- data/site/build/site/en/skin/images/rc-t-r-15-1body-2menu-3menu.png +0 -0
- data/site/build/site/en/skin/images/rc-t-r-5-1header-2searchbox-3searchbox.png +0 -0
- data/site/build/site/en/skin/images/rc-t-r-5-1header-2tab-selected-3tab-selected.png +0 -0
- data/site/build/site/en/skin/images/rc-t-r-5-1header-2tab-unselected-3tab-unselected.png +0 -0
- data/site/build/site/en/skin/images/remove.jpg +0 -0
- data/site/build/site/en/skin/images/rss.png +0 -0
- data/site/build/site/en/skin/images/spacer.gif +0 -0
- data/site/build/site/en/skin/images/success.png +0 -0
- data/site/build/site/en/skin/images/txtdoc.png +0 -0
- data/site/build/site/en/skin/images/update.jpg +0 -0
- data/site/build/site/en/skin/images/valid-html401.png +0 -0
- data/site/build/site/en/skin/images/vcss.png +0 -0
- data/site/build/site/en/skin/images/warning.png +0 -0
- data/site/build/site/en/skin/images/xmldoc.gif +0 -0
- data/site/build/site/en/skin/menu.js +0 -48
- data/site/build/site/en/skin/note.txt +0 -50
- data/site/build/site/en/skin/print.css +0 -54
- data/site/build/site/en/skin/profile.css +0 -163
- data/site/build/site/en/skin/prototype.js +0 -1257
- data/site/build/site/en/skin/screen.css +0 -587
- data/site/build/site/en/svn.html +0 -223
- data/site/build/site/en/svn.pdf +0 -239
- data/site/build/site/en/wholesite.pdf +0 -1686
- data/site/build/tmp/brokenlinks.xml +0 -2
- data/site/build/tmp/cocoon-work/cache-dir/cocoon-ehcache-1.data +0 -0
- data/site/build/tmp/cocoon-work/cache-dir/cocoon-ehcache-1.index +0 -0
- 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>
|
data/site/build/tmp/output.xmap
CHANGED
@@ -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="
|
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="
|
65
|
-
</target>
|
66
|
-
<target name="available-original-zip">
|
67
|
-
<available property="original.zip.exists" file="
|
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="
|
80
|
-
<available property="desired.plugin.zip.present" file="
|
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="
|
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="
|
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
|
-
|
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>
|