Changeset 15053 for release-kits/wirk3/ant-scripts
- Timestamp:
- 2008-03-06T14:08:49+13:00 (16 years ago)
- Location:
- release-kits/wirk3/ant-scripts
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/wirk3/ant-scripts/build.xml
r15023 r15053 15 15 <import file="compile.xml"/> 16 16 <import file="create-distribution.xml"/> 17 <import file="create-launcher.xml"/> 17 18 <import file="create-installer.xml"/> 18 <import file="create-launcher.xml"/>19 19 <import file="wrap.xml"/> 20 20 … … 24 24 <addressedcall target="compile"/> 25 25 <addressedcall target="create-distribution"/> 26 <addressedcall target="create-launcher"/> 26 27 <addressedcall target="create-installer"/> 27 <addressedcall target="create-launcher"/>28 28 <addressedcall target="wrap"/> 29 29 </target> -
release-kits/wirk3/ant-scripts/compile.xml
r15023 r15053 32 32 <if><bool><istrue value="${execute}"/></bool> 33 33 <svn> 34 <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="greenstone3" />34 <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="greenstone3" revision="${branch.revision}"/> 35 35 </svn> 36 36 </if> … … 45 45 <target name="dist-prepare-windows"> 46 46 <if><bool><istrue value="${execute}"/></bool> 47 <ant dir="greenstone3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" target="prepare-windows" inheritAll="false"/> 47 <ant dir="greenstone3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" target="prepare-windows" inheritAll="false"> 48 <property name="app.version" value="${version}"/> 49 <property name="branch.path" value="${branch.path}"/> 50 <property name="branch.revision" value="${branch.revision}"/> 51 </ant> 52 48 53 </if> 49 54 </target> … … 56 61 <target name="dist-build-windows"> 57 62 <if><bool><istrue value="${execute}"/></bool> 58 <ant dir="greenstone3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" target="build-windows" inheritAll="false"/> 63 <ant dir="greenstone3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" target="build-windows" inheritAll="false"> 64 <property name="app.version" value="${version}"/> 65 <property name="branch.path" value="${branch.path}"/> 66 <property name="branch.revision" value="${branch.revision}"/> 67 </ant> 59 68 </if> 60 69 </target> … … 65 74 <mkdir dir="greenstone3/gsdl-manuals"/> 66 75 <svn> 67 <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="greenstone3/gsdl-manuals/manuals" />68 <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="greenstone3/gsdl-manuals/shared" />76 <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="greenstone3/gsdl-manuals/manuals" revision="${branch.revision}"/> 77 <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="greenstone3/gsdl-manuals/shared" revision="${branch.revision}"/> 69 78 </svn> 70 79 <javac srcdir="greenstone3/gsdl-manuals/shared" destdir="greenstone3/gsdl-manuals/shared" debug="on"><include name="*.java"/></javac> … … 98 107 </exec> 99 108 100 101 109 </if> 102 110 </target> -
release-kits/wirk3/ant-scripts/create-distribution.xml
r15023 r15053 37 37 <delete dir="distribution/greenstone3"/> 38 38 <svn> 39 <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3" />39 <export srcurl="${svn.root}/greenstone3/${branch.path}" destPath="distribution/greenstone3" revision="${branch.revision}"/> 40 40 </svn> 41 41 </if> … … 62 62 <property name="app.version" value="${version}"/> 63 63 <property name="branch.path" value="${branch.path}"/> 64 <property name="branch.revision" value="${branch.revision}"/> 64 65 </ant> 65 66 </if> … … 91 92 92 93 <delete dir="distribution/greenstone3/lib/jni"/> 93 <copy todir="distribution/greenstone3/lib "><fileset dir="greenstone3/lib/jni"/></copy>94 <copy todir="distribution/greenstone3/lib/jni"><fileset dir="greenstone3/lib/jni"/></copy> 94 95 95 96 <delete dir="distribution/greenstone3/gs2build/bin/windows"/> 96 <copy todir="distribution/greenstone3/gs2build/bin "><fileset dir="greenstone3/gs2build/bin/windows"/></copy>97 <copy todir="distribution/greenstone3/gs2build/bin/windows"><fileset dir="greenstone3/gs2build/bin/windows"/></copy> 97 98 98 99 <delete dir="distribution/greenstone3/gs2build/bin/java"/> 99 <copy todir="distribution/greenstone3/gs2build/bin "><fileset dir="greenstone3/gs2build/bin/java"/></copy>100 <copy todir="distribution/greenstone3/gs2build/bin/java"><fileset dir="greenstone3/gs2build/bin/java"/></copy> 100 101 101 102 </if> -
release-kits/wirk3/ant-scripts/create-installer.xml
r15023 r15053 12 12 13 13 <target name="create-installer"> 14 <addressedcall target="setup-for-installer-creation"/> 15 <addressedcall target="compile-installer"/> 16 <addressedcall target="clean-up-after-installer-creation"/> 17 </target> 18 19 <target name="setup-for-installer-creation"> 14 20 <if><bool><istrue value="${execute}"/></bool> 15 21 … … 18 24 <copy todir="${basedir}/installer" file="${wirk3.home}/installer/antinstall-config.xml"/> 19 25 <rsr file="${basedir}/installer/antinstall-config.xml" pattern="@version@" replacement="${version}"/> 26 27 </if> 28 </target> 29 30 <target name="compile-installer"> 31 <if><bool><istrue value="${execute}"/></bool> 20 32 21 33 <installer file="${basedir}/installer/greenstone-${version}-win32.jar" … … 48 60 </target> 49 61 62 <target name="clean-up-after-installer-creation"> 63 <if><bool><istrue value="${execute}"/></bool> 64 <delete file="${basedir}/installer/antinstall-config.xml"/> 65 </if> 66 </target> 67 68 50 69 </project> -
release-kits/wirk3/ant-scripts/create-launcher.xml
r15025 r15053 39 39 <launch4j configFile="${basedir}/launcher/launcher.xml" /> 40 40 41 <echo>Putting a copy of the launcher in winutil</echo> 42 <copy file="${basedir}/launcher/launch-installer.exe" tofile="${basedir}/distribution/greenstone3/winutil/launcher.exe" overwrite="true"/> 41 43 </if> 42 44 </target> -
release-kits/wirk3/ant-scripts/init.xml
r15023 r15053 185 185 <echo level="info">Determining the branch path...</echo> 186 186 <if> 187 <bool><equals arg1="trunk" arg2="${version}"/></bool>188 <property name="branch.path" value="trunk"/>189 </if>190 191 <if>192 187 <bool><not><isset property="branch.path"/></not></bool> 193 188 <fail>You have not specified a branch path where code will come from in the repository</fail> … … 196 191 <echo level="info">Branch Path: ${branch.path}</echo> 197 192 <echo level="info"/> 198 199 <!-- check branches exist --> 200 <property name="svn.greenstone3" value="${svn.root}/greenstone3/${branch.path}"/> 201 <property name="svn.gsdl" value="${svn.root}/gsdl/${branch.path}"/> 202 <property name="svn.gli" value="${svn.root}/gli/${branch.path}"/> 203 <property name="svn.indexers" value="${svn.root}/indexers/${branch.path}"/> 204 <property name="svn.documentation" value="${svn.root}/documentation/${branch.path}"/> 205 206 <!-- greenstone3 branch --> 207 <echo level="info">Checking that ${svn.greenstone3} exists...</echo> 208 209 <!-- try to put the html index of the location into the temp file --> 210 <setloglevel level="error"/> 211 <try> 212 <get src="${svn.greenstone3}" dest="${temp.file}"/> 213 <catch> 214 <echo level="error">No, it does not exist</echo> 215 <property name="svn.greenstone3.unavailable" value="true"/> 216 </catch> 217 </try> 218 <setloglevel level="info"/> 219 <if> 220 <bool><not><istrue value="${svn.greenstone3.unavailable}"/></not></bool> 221 <echo level="info">Yes, it exists</echo> 222 </if> 223 224 <!-- gsdl branch --> 225 <echo level="info">Checking that ${svn.gsdl} exists...</echo> 226 <setloglevel level="error"/> 227 <try> 228 <get src="${svn.gsdl}" dest="${temp.file}"/> 229 <catch> 230 <echo level="error">No, it does not exist</echo> 231 <property name="svn.gsdl.unavailable" value="true"/> 232 </catch> 233 </try> 234 <setloglevel level="info"/> 235 <if> 236 <bool><not><istrue value="${svn.gsdl.unavailable}"/></not></bool> 237 <echo level="info">Yes, it exists</echo> 238 </if> 239 240 241 <!-- gli branch --> 242 <echo level="info">Checking that ${svn.gli} exists...</echo> 243 <!-- try to put the html index of the location into the temp file --> 244 <setloglevel level="error"/> 245 <try> 246 <get src="${svn.gli}" dest="${temp.file}"/> 247 <catch> 248 <echo level="error">No, does not exist</echo> 249 <property name="svn.gli.unavailable" value="true"/> 250 </catch> 251 </try> 252 <setloglevel level="info"/> 253 <if> 254 <bool><not><istrue value="${svn.gli.unavailable}"/></not></bool> 255 <echo level="info">Yes, it exists</echo> 256 </if> 257 258 259 <!-- indexers branch --> 260 <echo level="info">Checking that ${svn.indexers} exists...</echo> 261 <!-- try to put the html index of the location into the temp file --> 262 <setloglevel level="error"/> 263 <try> 264 <get src="${svn.indexers}" dest="${temp.file}"/> 265 <catch> 266 <echo level="error">No, it does not exist</echo> 267 <property name="svn.indexers.unavailable" value="true"/> 268 </catch> 269 </try> 270 <setloglevel level="info"/> 271 <if> 272 <bool><not><istrue value="${svn.indexers.unavailable}"/></not></bool> 273 <echo level="info">Yes, it exists</echo> 274 </if> 275 276 <!-- documentation branch --> 277 <echo level="info">Checking that ${svn.documentation} exists...</echo> 278 <!-- try to put the html index of the location into the temp file --> 279 <setloglevel level="error"/> 280 <try> 281 <get src="${svn.documentation}" dest="${temp.file}"/> 282 <catch> 283 <echo level="error">No, it does not exist</echo> 284 <property name="svn.documentation.unavailable" value="true"/> 285 </catch> 286 </try> 287 <setloglevel level="info"/> 288 <if> 289 <bool><not><istrue value="${svn.documentation.unavailable}"/></not></bool> 290 <echo level="info">Yes, it exists</echo> 291 </if> 292 293 294 <!-- clean up the temp file --> 295 <setloglevel level="error"/> 296 <delete file="${temp.file}"/> 297 <setloglevel level="info"/> 298 299 300 <!-- fail if some branches were missing --> 301 <if> 302 <bool> 303 <or> 304 <istrue value="${svn.greenstone3.unavailable}"/> 305 <istrue value="${svn.gsdl.unavailable}"/> 306 <istrue value="${svn.gli.unavailable}"/> 307 <istrue value="${svn.indexers.unavailable}"/> 308 <istrue value="${svn.documentation.unavailable}"/> 309 </or> 310 </bool> 311 <fail>Some branches do not exist, or you are unable to access them from where you are. Please review the list above and create any branches that are missing, or run this script from somewhere with access to the repository.</fail> 312 <else> 313 <echo level="info">All exist</echo> 314 </else> 315 </if> 193 194 <!-- check branch.revision --> 195 <echo level="info">Determining the branch revision...</echo> 196 <if> 197 <bool><not><isset property="branch.revision"/></not></bool> 198 <property name="branch.revision" value="HEAD"/> 199 <!--<echo level="info">No branch revision specified, defaulting to HEAD</echo>--> 200 </if> 201 202 <echo level="info">Branch Revision: ${branch.revision}</echo> 203 <echo level="info"/> 316 204 317 205 </target> -
release-kits/wirk3/ant-scripts/operations-on-gs3home.xml
r15023 r15053 101 101 <move todir="${gs2build.home}/source/indexers" failonerror="false"><fileset dir="${gs2build.home}/indexers" defaultexcludes="no"/></move> 102 102 <move file="${gs2build.home}/win32.mak" tofile="${gs2build.home}/source/win32.mak"/> 103 < move file="${gs2build.home}/setup.bat" tofile="${gs2build.home}/source/setup.bat"/>103 <!--<move file="${gs2build.home}/setup.bat" tofile="${gs2build.home}/source/setup.bat"/>--> 104 104 <move file="${gs2build.home}/WIN32cfg.h" tofile="${gs2build.home}/source/WIN32cfg.h"/> 105 105
Note:
See TracChangeset
for help on using the changeset viewer.