[c5ae6f]: docs / forrest / build / tmp / pluginlist2fetchbuild.xml  Maximize  Restore  History

Download this file

144 lines (139 with data), 6.6 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?xml version="1.0" encoding="UTF-8"?><project default="fetchplugin">
<target name="fetchplugin" depends="fetch-local-unversioned-plugin, fetch-remote-unversioned-plugin-version-forrest,fetch-remote-unversioned-plugin-unversion-forrest, final-check"/>
<target name="fetch-local-versioned-plugin">
<antcallback return="plugin-found" target="get-local">
<param name="local-plugin-version" value="-"/>
<param name="local-plugin-name" value="org.apache.forrest.plugin.output.pdf"/>
</antcallback>
</target>
<target unless="plugin-found" name="fetch-remote-versioned-plugin-version-forrest">
<antcallback return="plugin-found,desired.plugin.zip.present" target="download">
<param name="download-plugin-version" value="-"/>
<param name="download-plugin-name" value="org.apache.forrest.plugin.output.pdf"/>
<param name="download-forrest-version" value="0.9/"/>
</antcallback>
</target>
<target unless="plugin-found" name="fetch-local-unversioned-plugin">
<antcallback return="plugin-found" target="get-local">
<param value="" name="local-plugin-version"/>
<param name="local-plugin-name" value="org.apache.forrest.plugin.output.pdf"/>
</antcallback>
</target>
<target unless="plugin-found" name="fetch-remote-unversioned-plugin-version-forrest">
<antcallback return="plugin-found,desired.plugin.zip.present" target="download">
<param value="" name="download-plugin-version"/>
<param name="download-plugin-name" value="org.apache.forrest.plugin.output.pdf"/>
<param name="download-forrest-version" value="0.9/"/>
</antcallback>
</target>
<target unless="plugin-found" name="fetch-remote-unversioned-plugin-unversion-forrest">
<antcallback return="plugin-found,desired.plugin.zip.present" target="download">
<param value="" name="download-plugin-version"/>
<param name="download-plugin-name" value="org.apache.forrest.plugin.output.pdf"/>
<param value="" name="download-forrest-version"/>
</antcallback>
</target>
<target name="get-local">
<echo level="info">Trying to locally get ${local-plugin-name}${local-plugin-version}</echo>
<trycatch property="plugin-found">
<try>
<for param="plugin-src-dir" list="/usr/local/apache/apache-forrest-0.9/plugins,/usr/local/apache/apache-forrest-0.9/whiteboard/plugins">
<sequential>
<echo level="info">Looking in local @{plugin-src-dir}</echo>
<if>
<available type="dir" property="plugin.src.present" file="@{plugin-src-dir}/${local-plugin-name}${local-plugin-version}"/>
<then>
<echo message="Found !" level="info"/>
<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}">
<property value="true" name="no.echo.init"/>
</ant>
<fail/>
</then>
</if>
</sequential>
</for>
</try>
<catch>
<echo level="info">Plugin ${local-plugin-name}${local-plugin-version} deployed ! Ready to configure</echo>
</catch>
</trycatch>
</target>
<target depends="keep-original-zip,get-from-remote-site,is-downloaded,remove-original-zip" name="download"/>
<target if="original.zip.exists" depends="available-original-zip" name="keep-original-zip">
<copy preservelastmodified="true" file="/usr/local/apache/apache-forrest-0.9/build/plugins/${download-plugin-name}.zip" tofile="/usr/local/apache/apache-forrest-0.9/build/plugins/${download-plugin-name}.zip.orig"/>
</target>
<target name="available-original-zip">
<available property="original.zip.exists" file="/usr/local/apache/apache-forrest-0.9/build/plugins/${download-plugin-name}.zip"/>
</target>
<target name="get-from-remote-site">
<echo level="info">Tying to download ${download-plugin-name}${download-plugin-version} from the distribution site ...</echo>
<if>
<not>
<equals arg2="" arg1="${download.forrest.version}"/>
</not>
<then>
<echo level="info">Using Forrest version : ${download-forrest-version}</echo>
</then>
</if>
<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/apache/apache-forrest-0.9/build/plugins/${download-plugin-name}.zip"/>
<available property="desired.plugin.zip.present" file="/usr/local/apache/apache-forrest-0.9/build/plugins/${download-plugin-name}.zip"/>
<condition property="plugin-found">
<and>
<isset property="desired.plugin.zip.present"/>
<not>
<isset property="original.zip.exists"/>
</not>
</and>
</condition>
</target>
<target if="original.zip.exists" name="is-downloaded">
<uptodate property="no-difference-found" srcfile="/usr/local/apache/apache-forrest-0.9/build/plugins/${download-plugin-name}.zip" targetfile="/usr/local/apache/apache-forrest-0.9/build/plugins/${download-plugin-name}.zip.orig"/>
<if>
<not>
<isset property="no-difference-found"/>
</not>
<then>
<property value="true" name="plugin-found"/>
</then>
</if>
</target>
<target if="original.zip.exists" name="remove-original-zip">
<delete file="/usr/local/apache/apache-forrest-0.9/build/plugins/${download-plugin-name}.zip.orig"/>
</target>
<target depends="has-been-downloaded,downloaded-message,uptodate-message,not-found-message" name="final-check"/>
<target if="desired.plugin.zip.present" name="has-been-downloaded">
<condition property="up-to-date">
<not>
<isset property="plugin-found"/>
</not>
</condition>
<condition property="downloaded">
<isset property="plugin-found"/>
</condition>
</target>
<target if="downloaded" name="downloaded-message">
<echo level="info">Plugin org.apache.forrest.plugin.output.pdf downloaded ! Ready to install</echo>
</target>
<target if="up-to-date" name="uptodate-message">
<echo level="info">Plugin org.apache.forrest.plugin.output.pdf was up-to-date ! Ready to configure</echo>
<property value="true" name="plugin-found"/>
</target>
<target unless="desired.plugin.zip.present" name="not-found-message">
<fail>
Unable to download the
"org.apache.forrest.plugin.output.pdf" plugin
or an equivalent unversioned plugin
from http://forrest.apache.org/plugins/
There are a number of possible causes for this:
One possible problem is that you do not have write access to
FORREST_HOME, in which case ask your system admin to install the
required Forrest plugin as described below.
A further possibility is that Forrest may be unable to connect to
the plugin distribution server. Again the solution is to manually
install the plugin.
To manually install a plugin, download the plugin zip file from
http://forrest.apache.org/plugins/ and
extract it into
/usr/local/apache/apache-forrest-0.9/build/plugins/org.apache.forrest.plugin.output.pdf</fail>
</target>
</project>