source: trunk/gsdl3/build.xml@ 10737

Last change on this file since 10737 was 10735, checked in by kjdon, 19 years ago

in the filter for setup.bat, need to make sure we have a windows path - use pathconvert

  • Property svn:keywords set to Author Date Id Revision
File size: 63.3 KB
Line 
1<?xml version="1.0"?>
2
3<!-- ======================================================================
4 March 2005
5
6 GSDL3 build and install script
7
8 kjdon
9 ====================================================================== -->
10<project name="gsdl3" default="usage" basedir=".">
11
12 <!-- ============ self defined tasks =================== -->
13
14 <taskdef name="mysetproxy" classname="org.greenstone.anttasks.MySetProxy" classpath="${basedir}/lib/java/anttasks.jar"/>
15 <taskdef name="getuserandpassword" classname="org.greenstone.anttasks.MyGetUserAndPassword" classpath="${basedir}/lib/java/anttasks.jar"/>
16
17
18
19<!-- ===================== Property Definitions =========================== -->
20
21<!--
22
23 Each of the following properties are used in the build script.
24 Values for these properties are set by the first place they are
25 defined, from the following list:
26
27 * Definitions on the "ant" command line (ant -Dfoo=bar compile).
28
29 * Definitions from a "build.properties" file in the top level
30 source directory of this application.
31
32 * Definitions from a "build.properties" file in the user's
33 home directory.
34
35 * Default definitions in this build.xml file.
36
37 You will note below that property values can be composed based on the
38 contents of previously defined properties. This is a powerful technique
39 that helps you minimize the number of changes required when your development
40 environment is modified. Note that property composition is allowed within
41 "build.properties" files as well as in the "build.xml" script.
42
43-->
44
45 <property file="build.properties"/>
46 <property file="${user.home}/build.properties"/>
47
48 <!-- get properties from the environment -->
49 <property environment="env"/>
50 <property name="src.home" value="${basedir}/src/java"/>
51 <property name="build.home" value="${basedir}/build"/>
52 <property name="packages.home" value="${basedir}/packages"/>
53 <!-- this may be set in build.properties, eg if you move the web dir to
54 tomcats webapps directory -->
55 <property name="web.home" value="${basedir}/web"/>
56 <!-- jar files needed by applets go here -->
57 <property name="web.applet" value="${web.home}/applet"/>
58 <!-- jar files needed by the servlet (and extra ones) go here -->
59 <property name="web.lib" value="${web.home}/WEB-INF/lib"/>
60 <!-- other files needed by the servlet go here -->
61 <property name="web.classes" value="${web.home}/WEB-INF/classes"/>
62 <!-- jni libraries and java wrappers go here -->
63 <property name="lib.jni" value="${basedir}/lib/jni"/>
64
65 <property name="javadocs" value="${basedir}/docs/javadoc"/>
66
67 <property name="app.name" value="gsdl3"/>
68 <property name="app.path" value="/${app.name}"/>
69 <property name="app.version" value="3.00alpha"/>
70
71 <!-- catalina home is set to tomcat basedir is already installed, otherwise
72 use greenstone's tomcat -->
73 <condition property="catalina.home" value="${tomcat.installed.path}">
74 <and>
75 <isset property="tomcat.installed.path"/>
76 <not>
77 <equals arg1="" arg2="${tomcat.installed.path}"/>
78 </not>
79 </and>
80 </condition>
81 <property name="catalina.home" value="${basedir}/comms/jakarta/tomcat"/>
82
83 <property name="os.linux" value="Linux"/>
84 <property name="os.mac" value="Mac OS X"/>
85 <property name="os.windows" value="Windows 95,Windows 98,Windows 2000,Windows XP,Windows NT,Windows ME"/> <!-- check this!!!-->
86
87 <!-- this is true for linux and macs -->
88 <condition property="current.os.isunix">
89 <os family="unix"/>
90 </condition>
91
92 <condition property="current.os.isunixnotmac">
93 <and>
94 <os family="unix"/>
95 <not>
96 <os family="mac"/>
97 </not>
98 </and>
99 </condition>
100 <condition property="current.os.ismac">
101 <os family="mac"/>
102 </condition>
103
104 <condition property="current.os.iswindows">
105 <os family="windows"/>
106 </condition>
107
108 <!-- ============= Base dirs for each package and component ============ -->
109 <property name="applet.home" value="${src.home}/org/greenstone/applet"/>
110 <property name="gsdl3.home" value="${src.home}/org/greenstone/gsdl3"/>
111 <property name="anttasks.home" value="${src.home}/org/greenstone/anttasks"/>
112 <property name="gs2build.home" value="${basedir}/gs2build"/>
113 <property name="gli.home" value="${basedir}/gli"/>
114 <property name="vishnu.home" value="${packages.home}/vishnu"/>
115 <property name="mg.home" value="${packages.home}/mg"/>
116 <property name="mgpp.home" value="${packages.home}/mgpp"/>
117 <property name="mysql.home" value="${packages.home}/mysql"/>
118 <property name="gsdl-as.home" value="${packages.home}/gsdl-as"/>
119
120<!-- ==================== Compilation Control Options ==================== -->
121
122<!--
123
124 These properties control option settings on the Javac compiler when it
125 is invoked using the <javac> task.
126
127 compile.debug Should compilation include the debug option?
128
129 compile.deprecation Should compilation include the deprecation option?
130
131 compile.optimize Should compilation include the optimize option?
132
133-->
134
135 <property name="compile.debug" value="true"/>
136 <property name="compile.deprecation" value="true"/>
137 <property name="compile.optimize" value="true"/>
138
139<!--
140
141 Rather than relying on the CLASSPATH environment variable, Ant includes
142 features that makes it easy to dynamically construct the classpath you
143 need for each compilation. The example below constructs the compile
144 classpath to include the servlet.jar file, as well as the other components
145 that Tomcat makes available to web applications automatically, plus anything
146 that you explicitly added.
147
148-->
149
150 <path id="compile.classpath">
151 <!-- Include all jar files and libraries in our jni lib directory -->
152 <pathelement location="${lib.jni}"/>
153 <fileset dir="${lib.jni}">
154 <include name="*.jar"/>
155 </fileset>
156 <!-- Include all jar files in our web lib directory -->
157 <pathelement location="${web.lib}"/>
158 <fileset dir="${web.lib}">
159 <include name="*.jar"/>
160 </fileset>
161
162 <!-- Include the axis jar files -->
163 <!--<fileset dir="${basedir}/comms/soap/axis/lib">
164 <include name="*.jar"/>
165 </fileset>-->
166
167 <!-- include the jar files from the packages -->
168 <!-- mg and mgpp get installed into lib/jni but they may not be there yet
169 so we add them in by name -->
170 <pathelement location="${lib.jni}/mg.jar"/>
171 <pathelement location="${lib.jni}/mgpp.jar"/>
172 <pathelement location="${vishnu.home}/build/vishnu.jar"/>
173
174 <!-- Include all elements that Tomcat exposes to applications -->
175 <pathelement location="${catalina.home}/common/classes"/>
176 <fileset dir="${catalina.home}/common/endorsed">
177 <include name="*.jar"/>
178 </fileset>
179 <fileset dir="${catalina.home}/common/lib">
180 <include name="*.jar"/>
181 </fileset>
182 <pathelement location="${catalina.home}/shared/classes"/>
183 <fileset dir="${catalina.home}/shared/lib">
184 <include name="*.jar"/>
185 </fileset>
186 </path>
187
188 <path id="local.tomcat.classpath">
189 <!-- explicitly include the jni java wrappers in the classpath -->
190 <pathelement location="${lib.jni}"/>
191 <fileset dir="${lib.jni}">
192 <include name="*.jar"/>
193 </fileset>
194 </path>
195
196 <path id="local.tomcat.path">
197 <pathelement location="${mysql.home}/bin"/>
198 <pathelement location="${basedir}/bin/script"/>
199 <pathelement location="${basedir}/bin"/>
200 <pathelement location="${lib.jni}"/>
201 <pathelement path="${env.PATH}"/>
202 <pathelement path="${env.Path}"/>
203 </path>
204
205 <target name="test-setup">
206 <echo>ant java version=${ant.java.version}</echo>
207 <echo>is linux : ${current.os.isunix}</echo>
208 <echo>is mac : ${current.os.ismac}</echo>
209 <echo>is unixnotmac : ${current.os.isunixnotmac}</echo>
210 <echo>is windows : ${current.os.iswindows}</echo>
211 </target>
212<!-- ==================== Primary and Global Targets ============================= -->
213
214 <!-- add comments about using xxx-core, xxx-packages if only want certain parts?? -->
215
216 <target name="prepare" depends="accept-properties,init,prepare-core,prepare-packages,prepare-gs2building,prepare-tomcat,prepare-axis,prepare-mysql,prepare-web"
217 description="Use this when you first checkout the code: 'ant prepare install'. This will do some additional cvs checkouts and downloads, so you need to be online to run this."/>
218
219 <target name="install" depends="init,configure-mysql,configure,configure-c++,compile,deploy-localsite"
220 description="Install Greenstone 3. Use this when you first checkout the code: 'ant prepare install'."/>
221
222 <target name="cvsupdate" depends="init,cvsupdate-packages,cvsupdate-core,cvsupdate-gs2building,cvsupdate-web"
223 description="Do a cvs update for all sources. Doesn't recompile the code. You need to be online to run this."/>
224
225 <target name="configure-c++" depends="init,configure-packages,configure-core,configure-gs2building"
226 description="Configure any C/C++ package code and gs2building code if necessary"/>
227
228 <target name="configure" depends="init,configure-tomcat,configure-web"
229 description="Configure the installation. Includes setting up config files. Should be re-run if you change the build.properties file."/>
230
231 <target name="clean" depends="init,clean-packages,clean-core,clean-gs2building"
232 description="Remove all old compiled code. Includes core, packages and gs2building if necessary"/>
233 <target name="clean-windows-c++" depends="init,clean-windows-c++-gs2building,clean-windows-c++-packages"
234 description="Remove C++ compiled code for Windows. Requires Microsoft Visual Studio"/>
235
236 <target name="compile" depends="init,compile-web,compile-packages,compile-core,compile-gs2building"
237 description="Compile all the source code, includes core, packages and gs2building if necessary. Copy jar files and executables to their correct places."/>
238
239 <target name="compile-windows-c++" depends="init,compile-windows-c++-gs2building,compile-windows-c++-packages"
240 description="Compile the C/C++ code for Windows. Requires Microsoft Visual Studio"/>
241
242 <target name="update" depends="init,cvsupdate,clean,configure,configure-c++,compile"
243 description="Update (thru CVS) all the source (including core, packages and gs2building), then clean, configure and recompile."/>
244
245 <target name="start" depends="init,start-mysql,start-tomcat"
246 description="Startup the (local) Greenstone servers (tomcat,mysql...)" />
247
248 <target name="stop" depends="init,stop-tomcat,stop-mysql"
249 description="Shutdown the (local) Greenstone servers."/>
250
251 <target name="restart" description="Shutdown and restart the (local) Greenstone servers" depends="init,stop,start"/>
252
253
254<!-- =========== Help targets =================================== -->
255
256 <property name="install-command" value="ant [options] prepare install"/>
257
258 <target name="usage" description="Print a help message">
259 <echo message=" Execute 'ant -projecthelp' for a list of targets."/>
260 <echo message=" Execute 'ant -help' for Ant help."/>
261 <echo>To install Greenstone3, run '${install-command}'.
262There are properties defined in build.properties. The install process will ask you if these properties are set correctly. To avoid this prompt, use the '-Dproperties.accepted=yes' option.
263To log the output, use the '-logfile build.log' option.
264The README.txt file has more information about the ant targets and install process.
265 </echo>
266 </target>
267
268 <target name="help" depends="usage" description="Print a help message"/>
269
270 <target name="debug" depends="init" description="Display all the currently used properties">
271 <echoproperties/>
272 </target>
273
274<!-- ====== initialization and setup targets ================== -->
275
276 <target name="accept-properties" unless="properties.accepted">
277 <input addproperty="properties.ok" validargs="y,n">The following properties (among others) are being used from a build.properties file found in this directory:
278tomcat.server=${tomcat.server}
279tomcat.port=${tomcat.port}
280tomcat.installed.path=${tomcat.installed.path} (this is the location of Tomcat's base dir if it is already installed)
281gsdl2.installed.path=${gsdl2.installed.path} (this is the location of Greenstone 2 if you have it)
282proxy.host=${proxy.host}
283proxy.port=${proxy.port}
284mysql.installed.path=${mysql.installed.path} (this is the location of mysql if it is already installed)
285mysql.port=${mysql.port}
286If these are not acceptable, please change them and rerun this target. Continue [y/n]? />
287 </input>
288 <condition property="do.abort">
289 <equals arg1="n" arg2="${properties.ok}"/>
290 </condition>
291 <fail if="do.abort">Build aborted by user. Please change your properties settings and re-run the target</fail>
292 </target>
293
294 <target name="check-cvsroot">
295 <condition property="cvsroot.notset">
296 <or>
297 <not>
298 <isset property="env.CVSROOT"/>
299 </not>
300 <equals arg1="" arg2="${env.CVSROOT}"/>
301 </or>
302 </condition>
303 <fail if="cvsroot.notset" message="You need to set the CVSROOT variable"/>
304 </target>
305
306 <!-- this sets up some initial properties -->
307 <target name="init">
308
309 <condition property="java.too.old">
310 <or>
311 <equals arg1="1.1" arg2="${ant.java.version}"/>
312 <equals arg1="1.2" arg2="${ant.java.version}"/>
313 <equals arg1="1.3" arg2="${ant.java.version}"/>
314 </or>
315 </condition>
316 <fail if="java.too.old" message="You need Java 1.4 or greater to run Greenstone 3"/>
317
318 <available file="${basedir}/packages/mgpp/text" property="mgpp.present"/>
319 <available file="${basedir}/packages/mysql/bin" property="mysql.present"/>
320 <available file="${basedir}/gli" property="gli.present"/>
321 <available file="${basedir}/gs2build" property="gs2build.present"/>
322 <available file="${basedir}/comms/soap/axis" property="axis.present"/>
323 <condition property="gsdl2.islocal">
324 <or>
325 <not>
326 <isset property="gsdl2.installed.path"/>
327 </not>
328 <equals arg1="" arg2="${gsdl2.installed.path}"/>
329 </or>
330 </condition>
331 <condition property="mysql.islocal">
332 <or>
333 <not>
334 <isset property="mysql.installed.path"/>
335 </not>
336 <equals arg1="" arg2="${mysql.installed.path}"/>
337 </or>
338 </condition>
339 <condition property="tomcat.islocal">
340 <or>
341 <not>
342 <isset property="tomcat.installed.path"/>
343 </not>
344 <equals arg1="" arg2="${tomcat.installed.path}"/>
345 </or>
346 </condition>
347
348 <echo>tomcat.port:${tomcat.port}, gli.present:${gli.present} gsdlislocal=${gsdl2.islocal} gs2build.present=${gs2build.present} gsdl2.installed.path = ${gsdl2.installed.path}</echo>
349 <condition property="proxy.present">
350 <and>
351 <isset property="proxy.host"/>
352 <not>
353 <equals arg1="" arg2="${proxy.host}"/>
354 </not>
355 </and>
356 </condition>
357 </target>
358
359 <target name="setup-proxy" depends="init" if="proxy.present">
360 <condition property="ask.user">
361 <or>
362 <equals arg1="" arg2="${proxy.user}"/>
363 <equals arg1="" arg2="${proxy.password}"/>
364 </or>
365 </condition>
366 <getuserandpassword message="Using proxy: ${proxy.host}:${proxy.port}" if="ask.user" username="${proxy.user}" userproperty="proxy.username" pwordproperty="proxy.password"/>
367 <mysetproxy proxyhost="${proxy.host}" proxyport="${proxy.port}" proxyuser="${proxy.username}" proxypassword="${proxy.password}"/>
368 </target>
369
370 <!-- ========== Web app Targets ================================ -->
371
372 <target name="prepare-web">
373 <property name="collect.dir" value="${web.home}/sites/localsite/collect"/>
374 <!-- gs3mgdemo -->
375 <unzip src="${collect.dir}/gs3mgdemo/import.zip"
376 dest="${collect.dir}/gs3mgdemo"/>
377 <unzip src="${collect.dir}/gs3mgdemo/archives.zip"
378 dest="${collect.dir}/gs3mgdemo"/>
379 <unzip src="${collect.dir}/gs3mgdemo/index/index.zip"
380 dest="${collect.dir}/gs3mgdemo/index"/>
381 <delete file="${collect.dir}/gs3mgdemo/import.zip"/>
382 <delete file="${collect.dir}/gs3mgdemo/archives.zip"/>
383 <delete file="${collect.dir}/gs3mgdemo/index/index.zip"/>
384 <!-- gs2mgdemo -->
385 <unzip src="${collect.dir}/gs2mgdemo/import.zip"
386 dest="${collect.dir}/gs2mgdemo"/>
387 <unzip src="${collect.dir}/gs2mgdemo/metadata.zip"
388 dest="${collect.dir}/gs2mgdemo"/>
389 <unzip src="${collect.dir}/gs2mgdemo/index/index.zip"
390 dest="${collect.dir}/gs2mgdemo/index"/>
391 <delete file="${collect.dir}/gs2mgdemo/import.zip"/>
392 <delete file="${collect.dir}/gs2mgdemo/metadata.zip"/>
393 <delete file="${collect.dir}/gs2mgdemo/index/index.zip"/>
394 <!-- gs2mgppdemo -->
395 <unzip src="${collect.dir}/gs2mgppdemo/import.zip"
396 dest="${collect.dir}/gs2mgppdemo"/>
397 <unzip src="${collect.dir}/gs2mgppdemo/metadata.zip"
398 dest="${collect.dir}/gs2mgppdemo"/>
399 <unzip src="${collect.dir}/gs2mgppdemo/index/index.zip"
400 dest="${collect.dir}/gs2mgppdemo/index"/>
401 <delete file="${collect.dir}/gs2mgppdemo/import.zip"/>
402 <delete file="${collect.dir}/gs2mgppdemo/metadata.zip"/>
403 <delete file="${collect.dir}/gs2mgppdemo/index/index.zip"/>
404 <!-- gberg -->
405 <unzip src="${collect.dir}/gberg/index/index.zip"
406 dest="${collect.dir}/gberg/index"/>
407 <delete file="${collect.dir}/gberg/index/index.zip"/>
408 <mkdir dir="${web.home}/applet"/>
409
410 <condition property="need.xml.jars">
411 <equals arg1="1.5" arg2="${ant.java.version}"/>
412 </condition>
413 <antcall target="rename-xml-jars"/>
414 </target>
415
416 <target name="rename-xml-jars" if="need.xml.jars">
417 <copy file="${web.lib}/xalan.jar.tmp" tofile="${web.lib}/xalan.jar"/>
418 <copy file="${web.lib}/xercesImpl.jar.tmp" tofile="${web.lib}/xercesImpl.jar"/>
419 </target>
420
421 <target name="configure-web" depends="init,get-mysql-gsdl3-passwords"
422 description="Configure only the web app config files">
423 <!-- we want a unix path in the global.properties file -->
424 <pathconvert targetos="unix" property="gsdl3.home.unix">
425 <path path="${web.home}"/>
426 </pathconvert>
427 <!-- just in case these haven't been defined, we need something to write to
428 the file -->
429 <property name="mysql.admin.password" value=" "/>
430 <property name="mysql.reader.password" value=" "/>
431 <filter token="gsdl3home" value="${gsdl3.home.unix}"/>
432 <filter token="mysql.port" value="${mysql.port}"/>
433 <filter token="mysql.server" value="${mysql.server}"/>
434 <filter token="mysql.admin.pword" value="${mysql.admin.password}"/>
435 <filter token="mysql.reader.pword" value="${mysql.reader.password}"/>
436 <filter token="tomcat.server" value="${tomcat.server}"/>
437 <filter token="tomcat.port" value="${tomcat.port}"/>
438 <copy file="${basedir}/resources/java/global.properties.in" tofile="${web.classes}/global.properties" filtering="true" overwrite="true"/>
439 <chmod file="${web.classes}/global.properties" perm="600"/>
440 </target>
441
442 <target name="compile-web" depends="init">
443 <javac srcdir="${web.classes}"
444 destdir="${web.classes}"
445 debug="${compile.debug}"
446 deprecation="${compile.deprecation}"
447 optimize="${compile.optimize}">
448 <classpath>
449 <path refid="compile.classpath"/>
450 </classpath>
451 </javac>
452 </target>
453
454 <target name="cvsupdate-web" unless="nocvs.mode">
455 <cvs command="update -dP" dest="${web.home}"/>
456 </target>
457
458 <target name="update-web" depends="init,cvsupdate-web,configure-web"
459 description="update only the web stuff (config files)"/>
460
461
462<!-- ======================= Tomcat Targets ========================== -->
463
464 <!-- this target sets up tomcat for the first time, or resets it any subsequent times -->
465 <target name="prepare-tomcat" depends="init,setup-proxy" if="tomcat.islocal">
466 <get src="http://www.greenstone.org/gs3files/jakarta-tomcat-5.5.7.zip"
467 dest="${basedir}/comms/jakarta/jakarta-tomcat-5.5.7.zip"
468 usetimestamp="true"/>
469 <delete dir="${basedir}/comms/jakarta/tomcat.bak"/>
470 <move todir="${basedir}/comms/jakarta/tomcat.bak" failonerror="false">
471 <fileset dir="${basedir}/comms/jakarta/tomcat"/>
472 </move>
473 <unzip src="${basedir}/comms/jakarta/jakarta-tomcat-5.5.7.zip"
474 dest="${basedir}/comms/jakarta"/>
475 <condition property="need.tomcat.compat">
476 <equals arg1="1.4" arg2="${ant.java.version}"/>
477 </condition>
478 <antcall target="prepare-tomcat-compat"/>
479 <move todir="${basedir}/comms/jakarta/tomcat">
480 <fileset dir="${basedir}/comms/jakarta/jakarta-tomcat-5.5.7"/>
481 </move>
482 <copy file="${basedir}/comms/jakarta/setclasspath.bat"
483 tofile="${basedir}/comms/jakarta/tomcat/bin/setclasspath.bat"
484 overwrite="true"/>
485 <copy file="${basedir}/comms/jakarta/setclasspath.sh"
486 tofile="${basedir}/comms/jakarta/tomcat/bin/setclasspath.sh"
487 overwrite="true"/>
488 <!-- make sure we have execute permission for the .sh files -->
489 <chmod dir="${basedir}/comms/jakarta/tomcat/bin" perm="ugo+rx"
490 includes="*.sh"/>
491 </target>
492
493
494 <target name="prepare-tomcat-compat" if="need.tomcat.compat">
495 <get src="http://www.greenstone.org/gs3files/jakarta-tomcat-5.5.7-compat.zip"
496 dest="${basedir}/comms/jakarta/jakarta-tomcat-5.5.7-compat.zip"
497 usetimestamp="true"/>
498 <unzip src="${basedir}/comms/jakarta/jakarta-tomcat-5.5.7-compat.zip"
499 dest="${basedir}/comms/jakarta"/>
500 <copy file="${basedir}/comms/jakarta/jakarta-tomcat-5.5.7/common/endorsed/xml-apis.jar"
501 tofile="${web.applet}/xml-apis.jar"/>
502 <copy file="${basedir}/comms/jakarta/jakarta-tomcat-5.5.7/common/endorsed/xercesImpl.jar"
503 tofile="${web.applet}/xercesImpl.jar"/>
504 </target>
505
506 <target name="configure-tomcat" depends="init,configure-tomcat-local,configure-tomcat-external"/>
507
508 <target name="configure-tomcat-local" depends="init" if="tomcat.islocal">
509 <!-- re-setup the server.xml file -->
510 <copy file="${basedir}/comms/jakarta/server.xml.in" tofile="${basedir}/comms/jakarta/tomcat/conf/server.xml" overwrite="true">
511 <filterset>
512 <filter token="port" value="${tomcat.port}"/>
513 <filter token="gsdl3home" value="${basedir}"/>
514 </filterset>
515 </copy>
516 </target>
517
518 <target name="configure-tomcat-external" depends="init" unless="tomcat.islocal">
519 <!-- re-setup the server.xml file -->
520 <!-- need to edit the config file, or do we get the user to do this???-->
521 </target>
522
523 <target name="reload" description="Reload web application"
524 depends="init,setup-catalina-ant-tasks">
525 <reload url="http://kanuka:7070/manager" username="admin" password="admin"
526 path="/gsdl3"/>
527 </target>
528
529 <target name="start-tomcat" description="Startup only Tomcat" depends="init" if="tomcat.islocal">
530 <property name="tomcat.classpath" refid="local.tomcat.classpath"/>
531 <property name="tomcat.path" refid="local.tomcat.path"/>
532 <property name="catalina.opts" value="-Djava.util.prefs.syncInterval=2000000 -DGSDL3HOME=$GSDL3HOME -DGSDLOS=$GSDLOS -DPATH=$PATH -Xmx400M"/>
533 <exec executable="${catalina.home}/bin/startup.sh" os="${os.linux},${os.mac}" dir="${catalina.home}/bin" spawn="false">
534 <!--<env key="GSDLOS" value="linux"/> do we need this?? -->
535 <env key="GSDL3HOME" value="${basedir}"/>
536 <env key="PATH" path="${tomcat.path}"/>
537 <env key="CATALINA_OPTS" value="${catalina.opts}"/>
538 <env key="CATALINA_HOME" value="${catalina.home}"/>
539 <env key="CLASSPATH" path="${tomcat.classpath}"/>
540 <env key="LD_LIBRARY_PATH" path="${env.LD_LIBRARY_PATH}:${lib.jni}"/>
541 <env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH}:${lib.jni}"/>
542<!-- <env key="LD_LIBRARY_PATH" path="${env.LD_LIBRARY_PATH}:${lib.jni}:${mysql.home}/lib/mysql"/>
543
544 <env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH}:${lib.jni}:${mysql.home}/lib/mysql"/>--> <!-- for mac-->
545 </exec>
546 <exec executable="${catalina.home}/bin/startup.bat" os="${os.windows}" dir="${catalina.home}/bin" spawn="true">
547 <env key="GSDLOS" value="windows"/>
548 <env key="GSDL3HOME" value="${basedir}"/>
549 <env key="Path" path="${tomcat.path}"/>
550 <env key="PATH" path="${tomcat.path}"/>
551 <env key="CATALINA_OPTS" value="${catalina.opts}"/>
552 <env key="CLASSPATH" path="${tomcat.classpath}"/>
553 </exec>
554 <!-- wait for the server to startup in case other targets need it running -->
555 <waitfor maxwait="5" maxwaitunit="second">
556 <and>
557 <socket server="${tomcat.server}" port="${tomcat.port}"/>
558 <http url="http://${tomcat.server}:${tomcat.port}/gsdl3/index.html"/>
559 </and>
560 </waitfor>
561 </target>
562 <!-- windows: do we want to launch a webrowser?? -->
563 <target name="stop-tomcat" description="Shutdown only Tomcat" depends="init" if="tomcat.islocal">
564 <exec executable="${catalina.home}/bin/shutdown.sh" os="${os.linux},${os.mac}" dir="${catalina.home}/bin" spawn="false">
565 <env key="CATALINA_HOME" value="${catalina.home}"/>
566 </exec>
567 <exec executable="${catalina.home}/bin/shutdown.bat" os="${os.windows}" dir="${catalina.home}/bin" spawn="false"/>
568 </target>
569
570 <target name="restart-tomcat" description="Shutdown and restart only Tomcat" depends="init,stop-tomcat,start-tomcat"/>
571
572 <target name="setup-catalina-ant-tasks">
573 <!-- Configure the custom Ant tasks for the Tomcat Manager application -->
574 <taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"
575 classpath="${catalina.home}/server/lib/catalina-ant.jar"/>
576 <taskdef name="list" classname="org.apache.catalina.ant.ListTask"
577 classpath="${catalina.home}/server/lib/catalina-ant.jar"/>
578 <taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask"
579 classpath="${catalina.home}/server/lib/catalina-ant.jar"/>
580 <taskdef name="resources" classname="org.apache.catalina.ant.ResourcesTask"
581 classpath="${catalina.home}/server/lib/catalina-ant.jar"/>
582 <taskdef name="roles" classname="org.apache.catalina.ant.RolesTask"
583 classpath="${catalina.home}/server/lib/catalina-ant.jar"/>
584 <taskdef name="start" classname="org.apache.catalina.ant.StartTask"
585 classpath="${catalina.home}/server/lib/catalina-ant.jar"/>
586 <taskdef name="stop" classname="org.apache.catalina.ant.StopTask"
587 classpath="${catalina.home}/server/lib/catalina-ant.jar"/>
588 <taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask"
589 classpath="${catalina.home}/server/lib/catalina-ant.jar"/>
590 </target>
591
592
593<!-- ======================= Mysql Targets =========================== -->
594
595 <!-- this is one target that we only want to run once. -->
596 <target name="prepare-mysql" depends="init,init-mysql-vars,install-mysql,start-mysql,setup-mysql,stop-mysql-no-password-force"/>
597
598 <target name="init-mysql-vars">
599 <condition property="mysql.islocal.linux">
600 <and>
601 <isset property="mysql.islocal"/>
602 <isset property="current.os.isunixnotmac"/>
603 </and>
604 </condition>
605 <condition property="mysql.islocal.mac">
606 <and>
607 <isset property="mysql.islocal"/>
608 <isset property="current.os.ismac"/>
609 </and>
610 </condition>
611 <condition property="mysql.islocal.windows">
612 <and>
613 <isset property="mysql.islocal"/>
614 <isset property="current.os.iswindows"/>
615 </and>
616 </condition>
617 <condition property="mysql.islocal.usepassword">
618 <and>
619 <isset property="mysql.islocal"/>
620 <isset property="mysql.use.passwords"/>
621 <equals arg1="yes" arg2="${mysql.use.passwords}"/>
622 </and>
623 </condition>
624 <condition property="mysql.islocal.usepassword.windows">
625 <and>
626 <isset property="mysql.islocal.usepassword"/>
627 <isset property="current.os.iswindows"/>
628 </and>
629 </condition>
630 <condition property="mysql.islocal.usepassword.unix">
631 <and>
632 <isset property="mysql.islocal.usepassword"/>
633 <isset property="current.os.isunix"/>
634 </and>
635 </condition>
636 <condition property="mysql.islocal.nopassword">
637 <and>
638 <isset property="mysql.islocal"/>
639 <or>
640 <not>
641 <isset property="mysql.use.passwords"/>
642 </not>
643 <equals arg1="no" arg2="${mysql.use.passwords}"/>
644 </or>
645 </and>
646 </condition>
647 </target>
648
649 <target name="configure-mysql" depends="init,init-mysql-vars,start-mysql,set-mysql-account-passwords,stop-mysql" description="sets up the mysql account passwords"/>
650
651 <target name="get-mysql-root-password" depends="init,init-mysql-vars" if="mysql.islocal.usepassword">
652 <condition property="ask.root.password">
653 <or>
654 <not>
655 <isset property="mysql.root.password"/>
656 </not>
657 <equals arg1="" arg2="${mysql.root.password}"/>
658 </or>
659 </condition>
660 <getuserandpassword message="Please specify the password for the root mysql user: this is to secure your database." if="ask.root.password" username="root" pwordproperty="mysql.root.password"/>
661 </target>
662
663 <target name="get-mysql-gsdl3-passwords" depends="init,init-mysql-vars" if="mysql.islocal.usepassword">
664 <condition property="ask.admin.password">
665 <or>
666 <not>
667 <isset property="mysql.admin.password"/>
668 </not>
669 <equals arg1="" arg2="${mysql.admin.password}"/>
670 </or>
671 </condition>
672 <condition property="ask.reader.password">
673 <or>
674 <not>
675 <isset property="mysql.reader.password"/>
676 </not>
677 <equals arg1="" arg2="${mysql.reader.password}"/>
678 </or>
679 </condition>
680 <getuserandpassword message="Please specify the password for the gsdl3admin mysql user: this is used by greenstone" if="ask.admin.password" username="gsdl3admin" pwordproperty="mysql.admin.password"/>
681 <getuserandpassword message="Please specify the password for the gsdl3reader mysql user: this is used by greenstone" if="ask.reader.password" username="gsdl3reader" pwordproperty="mysql.reader.password"/>
682 </target>
683
684 <target name="install-mysql" depends="init,init-mysql-vars,install-mysql-linux,install-mysql-windows,install-mysql-mac"/>
685
686 <!-- install the database : linux-->
687 <target name="install-mysql-linux" depends="init,init-mysql-vars" if="mysql.islocal.linux" unless="mysql.present">
688 <get src="http://www.greenstone.org/gs3files/mysql-standard-4.1.11-pc-linux-gnu-i686.tar.gz"
689 dest="${packages.home}/mysql-standard-4.1.11-pc-linux-gnu-i686.tar.gz"
690 usetimestamp="true"/>
691 <untar src="${packages.home}/mysql-standard-4.1.11-pc-linux-gnu-i686.tar.gz"
692 dest="${packages.home}"
693 compression="gzip"/>
694 <move todir="${packages.home}/mysql">
695 <fileset dir="${packages.home}/mysql-standard-4.1.11-pc-linux-gnu-i686"/>
696 </move>
697 <!-- file permissions are screwed up, so make executables executable -->
698 <chmod file="${mysql.home}/scripts/mysql_install_db" perm="a+x"/>
699 <chmod perm="a+x">
700 <fileset dir="${mysql.home}/bin" />
701 </chmod>
702 <mkdir dir="${mysql.home}/var/"/>
703 <mkdir dir="${mysql.home}/var/log/"/>
704 <chmod file="${mysql.home}/var/" perm="777"/>
705 <chmod file="${mysql.home}/var/log/" perm="777"/>
706
707 <exec executable="${mysql.home}/scripts/mysql_install_db" dir="${mysql.home}">
708 <arg value="--datadir=./data"/>
709 <arg value="--basedir=."/>
710 <arg value="--user=root"/>
711 <arg value="--force"/>
712 </exec>
713 </target>
714
715
716 <!-- install the database : mac-->
717 <target name="install-mysql-mac" depends="init,init-mysql-vars" if="mysql.islocal.mac" unless="mysql.present">
718 <get src="http://www.greenstone.org/gs3files/mysql-standard-4.1.12-apple-darwin7.9.0-powerpc.tar.gz"
719 dest="${packages.home}/mysql-standard-4.1.12-apple-darwin7.9.0-powerpc.tar.gz"
720 usetimestamp="true"/>
721 <untar src="${packages.home}/mysql-standard-4.1.12-apple-darwin7.9.0-powerpc.tar.gz"
722 dest="${packages.home}"
723 compression="gzip"/>
724 <move todir="${packages.home}/mysql">
725 <fileset dir="${packages.home}/mysql-standard-4.1.12-apple-darwin7.9.0-powerpc"/>
726 </move>
727 <!-- file permissions are screwed up, so make executables executable -->
728 <chmod file="${mysql.home}/scripts/mysql_install_db" perm="a+x"/>
729 <chmod perm="a+x">
730 <fileset dir="${mysql.home}/bin" />
731 </chmod>
732 <mkdir dir="${mysql.home}/var/"/>
733 <mkdir dir="${mysql.home}/var/log/"/>
734 <chmod file="${mysql.home}/var/" perm="777" type="dir"/>
735 <chmod file="${mysql.home}/var/log/" perm="777" type="dir"/>
736 <exec executable="${mysql.home}/scripts/mysql_install_db" dir="${mysql.home}">
737 <arg value="--datadir=./data"/>
738 <arg value="--basedir=."/>
739 <!--<arg value="- -user=root"/>
740 <arg value="- -force"/>-->
741 </exec>
742 </target>
743
744 <!-- install the database : windows -->
745 <target name="install-mysql-windows" depends="init,init-mysql-vars" if="mysql.islocal.windows" unless="mysql.present">
746 <get src="http://www.greenstone.org/gs3files/mysql-noinstall-4.1.11-win32.zip"
747 dest="${packages.home}/mysql-noinstall-4.1.11-win32.zip"
748 usetimestamp="true"/>
749 <!-- can we run the installer?? -->
750 <unzip src="${packages.home}/mysql-noinstall-4.1.11-win32.zip"
751 dest="${packages.home}"/>
752 <move todir="${packages.home}/mysql">
753 <fileset dir="${packages.home}/mysql-4.1.11-win32"/>
754 </move>
755 </target>
756
757 <target name="setup-mysql" depends="init" if="mysql.islocal">
758 <!-- setup the gsdl3 accounts -->
759 <exec executable="${mysql.home}/bin/mysql" dir="${mysql.home}">
760 <arg value="--user=root"/>
761 <arg value="--execute=GRANT SELECT,INSERT,DELETE,UPDATE,DROP,CREATE ON *.* TO gsdl3admin@localhost"/>
762 </exec>
763 <exec executable="${mysql.home}/bin/mysql" dir="${mysql.home}">
764 <arg value="--user=root"/>
765 <arg value="--execute=GRANT SELECT ON *.* TO gsdl3reader@localhost"/>
766 </exec>
767 <!--<exec executable="${mysql.home}/bin/mysql" dir="${mysql.home}">
768 <arg value="- -user=root"/>
769 <arg value="- -execute=GRANT SELECT,INSERT,DELETE,UPDATE,DROP,CREATE ON *.* TO gsdl3admin@'%';"/>
770 </exec>-->
771
772 <!-- remove the anonymous user -->
773 <exec executable="${mysql.home}/bin/mysql" dir="${mysql.home}">
774 <arg value="--user=root"/>
775 <arg value="--execute=delete from mysql.user where Host='localhost' and User='';"/>
776 </exec>
777 <!-- load in the demo collection database -->
778 <exec executable="${mysql.home}/bin/mysql" dir="${mysql.home}">
779 <arg value="--user=root"/>
780 <arg value="--execute=create database localsite_gs3mgdemo;"/>
781 </exec>
782 <exec executable="${mysql.home}/bin/mysql" dir="${mysql.home}"
783 input="${web.home}/sites/localsite/collect/gs3mgdemo/mysqldatadump.sql">
784 <arg value="--user=root"/>
785 <arg value="localsite_gs3mgdemo"/>
786 </exec>
787 </target>
788
789 <target name="set-mysql-account-passwords" depends="init,init-mysql-vars,get-mysql-root-password,get-mysql-gsdl3-passwords" if="mysql.islocal.usepassword">
790 <exec executable="${mysql.home}/bin/mysql" dir="${mysql.home}">
791 <arg value="--user=root"/>
792 <arg value="--execute=set password for 'root'@'localhost' = PASSWORD('${mysql.root.password}'); set password for 'gsdl3reader'@'localhost' = PASSWORD('${mysql.reader.password}'); set password for 'gsdl3admin'@'localhost' = PASSWORD('${mysql.admin.password}'); flush privileges;"/>
793 </exec>
794 </target>
795
796 <target name="start-mysql" depends="init,init-mysql-vars" if="mysql.islocal"
797 description="Startup only mysql">
798 <echo>Starting up the mysql server</echo>
799 <exec executable="${mysql.home}/bin/mysqld_safe" dir="${mysql.home}"
800 spawn="true" os="${os.linux},${os.mac}">
801 <arg value="--datadir=./data"/>
802 <arg value="--basedir=."/>
803 <arg value="--pid_file=gsdl3.pid"/>
804 <arg value="--socket=/tmp/mysql.sock"/>
805 <arg value="--port=${mysql.port}"/>
806 <arg value="--err-log=./var/log/mysql.log"/>
807 </exec>
808 <exec executable="${mysql.home}/bin/mysqld" dir="${mysql.home}" spawn="true" os="${os.windows}">
809 <arg value="--port=${mysql.port}"/>
810 </exec>
811 <sleep seconds="2"/>
812 </target>
813
814 <target name="stop-mysql" depends="init,init-mysql-vars,stop-mysql-use-password-unix,stop-mysql-use-password-windows,stop-mysql-no-password" if="mysql.islocal"
815 description="Shutdown only mysql">
816 <echo>MYSQL database server shutdown successfully</echo>
817 </target>
818
819 <target name="stop-mysql-no-password" depends="init" if="mysql.islocal.nopassword">
820 <exec executable="${mysql.home}/bin/mysqladmin" dir="${mysql.home}"
821 failonerror="true" os="${os.linux},${os.mac}">
822 <arg value="--user=root"/>
823 <arg value="--socket=/tmp/mysql.sock"/>
824 <arg value="shutdown"/>
825 </exec>
826 <exec executable="${mysql.home}/bin/mysqladmin" dir="${mysql.home}"
827 failonerror="true" os="${os.windows}">
828 <arg value="--user=root"/>
829 <arg value="shutdown"/>
830 </exec>
831 </target>
832
833 <target name="stop-mysql-no-password-force" depends="init">
834 <exec executable="${mysql.home}/bin/mysqladmin" dir="${mysql.home}"
835 failonerror="true" os="${os.linux},${os.mac}">
836 <arg value="--user=root"/>
837 <arg value="--socket=/tmp/mysql.sock"/>
838 <arg value="shutdown"/>
839 </exec>
840 <exec executable="${mysql.home}/bin/mysqladmin" dir="${mysql.home}"
841 failonerror="true" os="${os.windows}">
842 <arg value="--user=root"/>
843 <arg value="shutdown"/>
844 </exec>
845 </target>
846
847 <target name="stop-mysql-use-password-unix" depends="init" if="mysql.islocal.usepassword.unix">
848 <echo>At the password prompt, enter the mysql root password.</echo>
849 <exec executable="${mysql.home}/bin/mysqladmin" dir="${mysql.home}"
850 failonerror="true" os="${os.linux},${os.mac}">
851 <arg value="--user=root"/>
852 <arg value="-p"/>
853 <arg value="--socket=/tmp/mysql.sock"/>
854 <arg value="shutdown"/>
855 </exec>
856 </target>
857
858 <target name="stop-mysql-use-password-windows" depends="init" if="mysql.islocal.usepassword.windows">
859 <!--<antcall target="get-mysql-root-password"/>
860 antcall doesn't set the property in teh callign project. if put this in the depends list, it will always be called, even if not windows. so copy it in here.-->
861 <condition property="ask.root.password">
862 <or>
863 <not>
864 <isset property="mysql.root.password"/>
865 </not>
866 <equals arg1="" arg2="${mysql.root.password}"/>
867 </or>
868 </condition>
869 <getuserandpassword message="Please specify the password for the root mysql user: this is to secure your database." if="ask.root.password" username="root" pwordproperty="mysql.root.password"/>
870 <!-- on windows it doesn't work unless the password is specified here -->
871 <exec executable="${mysql.home}/bin/mysqladmin" dir="${mysql.home}"
872 failonerror="true" os="${os.windows}">
873 <arg value="--user=root"/>
874 <arg value="-p${mysql.root.password}"/>
875 <arg value="shutdown"/>
876 </exec>
877 </target>
878
879 <target name="restart-mysql" description="Shutdown and restart only mysql" depends="init,stop-mysql,start-mysql"/>
880
881
882<!-- ======================= Axis Targets ============================ -->
883
884 <target name="prepare-axis" depends="init">
885 <mkdir dir="${basedir}/comms/soap"/>
886 <get src="http://www.greenstone.org/gs3files/axis-bin-1_2_1.zip"
887 dest="${basedir}/comms/soap/axis-bin-1_2_1.zip"
888 usetimestamp="true"/>
889 <delete dir="${basedir}/comms/soap/axis.bak"/>
890 <move todir="${basedir}/comms/soap/axis.bak" failonerror="false">
891 <fileset dir="${basedir}/comms/soap/axis"/>
892 </move>
893 <unzip src="${basedir}/comms/soap/axis-bin-1_2_1.zip"
894 dest="${basedir}/comms/soap/"/>
895 <move todir="${basedir}/comms/soap/axis">
896 <fileset dir="${basedir}/comms/soap/axis-1_2_1"/>
897 </move>
898 <!-- install axis into greenstone web app -->
899 <copy todir="${web.lib}">
900 <fileset dir="${basedir}/comms/soap/axis/webapps/axis/WEB-INF/lib">
901 <include name="*.jar"/>
902 </fileset>
903 </copy>
904 <copy todir="${web.home}">
905 <fileset dir="${basedir}/comms/soap/axis/webapps/axis/">
906 <include name="*.jsp"/>
907 <include name="*.jws"/>
908 </fileset>
909 </copy>
910 <copy tofile="${web.home}/axis.html" file="${basedir}/comms/soap/axis/webapps/axis/index.html"/>
911 <copy todir="${web.classes}">
912 <fileset dir="${basedir}/comms/soap/axis/webapps/axis/WEB-INF/classes">
913 <include name="*.properties"/>
914 </fileset>
915 </copy>
916 </target>
917
918 <target name="soap-deploy-site" depends="get-sitename,get-siteuri,create-deployment-files"
919 description="Deploy a SOAP web service for a local Greenstone site">
920 <java classname="org.apache.axis.client.AdminClient">
921 <classpath refid="compile.classpath"/>
922 <arg value="-l"/>
923 <arg value="http://${tomcat.server}:${tomcat.port}${app.path}/servlet/AxisServlet"/>
924 <arg file="${basedir}/resources/soap/${axis.sitename}.wsdd"/>
925 </java>
926 </target>
927
928 <target name="soap-undeploy-site" depends="get-sitename"
929 description="Undeploy a SOAP web service for a local Greenstone site">
930 <java classname="org.apache.axis.client.AdminClient">
931 <classpath refid="compile.classpath"/>
932 <arg value="-l"/>
933 <arg value="http://${tomcat.server}:${tomcat.port}${app.path}/servlet/AxisServlet"/>
934 <arg file="${basedir}/resources/soap/undeploy-${axis.sitename}.wsdd"/>
935 </java>
936 </target>
937
938 <!-- this target used to deploy the localsite server for the default installation -->
939 <target name="deploy-localsite" depends="init">
940 <antcall target="start-tomcat"/>
941 <antcall target="soap-deploy-site">
942 <param name="axis.sitename" value="localsite"/>
943 <param name="axis.siteuri" value="localsite"/>
944 </antcall>
945 <antcall target="stop-tomcat"/>
946 </target>
947
948 <target name="get-sitename" unless="axis.sitename">
949 <input addproperty="axis.sitename" message="What site? (press enter for default:localsite)" defaultvalue="localsite"/>
950 </target>
951
952 <target name="get-siteuri" depends="get-sitename" unless="axis.siteuri">
953 <input addproperty="axis.siteuri" message="What name do you want the service to have? (press enter for default:${axis.sitename})" defaultvalue="${axis.sitename}"/>
954 <echo>${axis.sitename}, ${axis.siteuri}</echo>
955 </target>
956 <target name="check-deployment-files" depends="get-sitename">
957 <condition property="deploy.exists">
958 <and>
959 <available file="${basedir}/resources/soap/${axis.sitename}.wsdd"/>
960 <available file="${basedir}/resources/soap/undeploy-${axis.sitename}.wsdd"/>
961 <available file="${web.classes}/org/greenstone/gsdl3/SOAPServer${axis.sitename}.class"/>
962 </and>
963 </condition>
964 </target>
965
966 <target name="create-deployment-files" depends="get-sitename,get-siteuri,check-deployment-files"
967 if="axis.sitename" unless="deploy.exists">
968 <filter token="sitename" value="${axis.sitename}"/>
969 <filter token="siteuri" value="${axis.siteuri}"/>
970 <copy file="${basedir}/resources/soap/site.wsdd.template"
971 tofile="${basedir}/resources/soap/${axis.sitename}.wsdd"
972 filtering="true"/>
973 <copy file="${basedir}/resources/soap/undeploy-site.wsdd.template"
974 tofile="${basedir}/resources/soap/undeploy-${axis.sitename}.wsdd"
975 filtering="true"/>
976 <!-- create the java files and compile them -->
977 <copy file="${gsdl3.home}/SOAPServer.java.in"
978 tofile="${gsdl3.home}/SOAPServer${axis.sitename}.java"
979 filtering="true"/>
980 <javac srcdir="${src.home}"
981 destdir="${build.home}"
982 debug="${compile.debug}"
983 deprecation="${compile.deprecation}"
984 optimize="${compile.optimize}">
985 <classpath refid="compile.classpath"/>
986 <include name="org/greenstone/gsdl3/SOAPServer${axis.sitename}.java" />
987 </javac>
988 <mkdir dir="${web.classes}/org/greenstone/gsdl3"/>
989 <copy file="${build.home}/org/greenstone/gsdl3/SOAPServer${axis.sitename}.class" tofile="${web.classes}/org/greenstone/gsdl3/SOAPServer${axis.sitename}.class" />
990 </target>
991
992
993<!-- ====================== Core targets ============================== -->
994<!-- core targets refer to the core gsdl3 java src -->
995
996 <target name="prepare-core" unless="nocvs.mode">
997 <!-- just get rid of empty directories-->
998 <cvs command="update -P"/>
999 </target>
1000
1001 <target name="configure-core"/>
1002
1003 <target name="update-core" depends="init,cvsupdate-core,clean-core,compile-core"
1004 description="Update only the Greenstone core" />
1005
1006 <target name="cvsupdate-core" unless="nocvs.mode">
1007 <cvs command="update -l"/>
1008 <cvs command="update -dP bin comms dist-resources docs lib resources src winutil"/>
1009 </target>
1010
1011 <target name="clean-core"
1012 description="Clean only the Greenstone core">
1013 <delete dir="${build.home}"/>
1014 </target>
1015
1016 <target name="compile-core"
1017 description="Compile only the Greenstone core">
1018 <mkdir dir="${build.home}"/>
1019 <javac srcdir="${src.home}"
1020 destdir="${build.home}"
1021 debug="${compile.debug}"
1022 deprecation="${compile.deprecation}"
1023 optimize="${compile.optimize}">
1024 <classpath>
1025 <path refid="compile.classpath"/>
1026 </classpath>
1027 </javac>
1028 <jar destfile="${build.home}/gsdl3.jar">
1029 <fileset dir="${build.home}">
1030 <include name="org/greenstone/gsdl3/**"/>
1031 <exclude name="**/Test.class"/>
1032 </fileset>
1033 <manifest>
1034 <attribute name="Built-By" value="${user.name}" />
1035 </manifest>
1036 </jar>
1037 <copy file="${build.home}/gsdl3.jar" todir="${web.lib}"/>
1038 <jar destfile="${build.home}/phind.jar">
1039 <fileset dir="${build.home}">
1040 <include name="org/greenstone/applet/phind/**"/>
1041 </fileset>
1042 <manifest>
1043 <attribute name="Built-By" value="${user.name}" />
1044 </manifest>
1045 </jar>
1046 <copy file="${build.home}/phind.jar" todir="${web.applet}"/>
1047 <jar destfile="${build.home}/anttasks.jar">
1048 <fileset dir="${build.home}">
1049 <include name="org/greenstone/anttasks/**"/>
1050 </fileset>
1051 <manifest>
1052 <attribute name="Built-By" value="${user.name}" />
1053 </manifest>
1054 </jar>
1055 <copy file="${build.home}/anttasks.jar" todir="${basedir}/lib/java"/>
1056 <jar destfile="${build.home}/gsdl3test.jar">
1057 <fileset dir="${build.home}">
1058 <include name="org/greenstone/gsdl3/**/*Test.class"/>
1059 <include name="org/greenstone/testing/**"/>
1060 </fileset>
1061 <manifest>
1062 <attribute name="Built-By" value="${user.name}" />
1063 </manifest>
1064 </jar>
1065 </target>
1066
1067<!-- ================== Packages targets ================================ -->
1068 <!-- these targets refer to the greenstone packages - these need updating
1069 less often, so are in separate targets to the core -->
1070 <target name="prepare-packages" depends="init,prepare-mgpp,prepare-windows"/>
1071
1072 <target name="prepare-windows" depends="init" if="current.os.iswindows">
1073 <!-- need to download precompiled binaries for mg and mgpp -->
1074 </target>
1075
1076 <target name="checkout-mgpp" depends="check-cvsroot,init" unless="nocvs.mode">
1077 <cvs command="checkout -P" package="mgpp" dest="${basedir}/packages/"/>
1078 </target>
1079
1080 <target name="prepare-mgpp" depends="init" unless="mgpp.present">
1081 <antcall target="checkout-mgpp"/>
1082 </target>
1083
1084 <target name="update-packages" depends="init,cvsupdate-packages,configure-packages,clean-packages,compile-packages"
1085 description="Update only the packages"/>
1086
1087 <target name="cvsupdate-packages" unless="nocvs.mode">
1088 <cvs command="update -dP" dest="${packages.home}"/>
1089 </target>
1090
1091 <target name="configure-packages" description="Configure only the packages.">
1092 <echo>
1093 Configuring MG
1094 </echo>
1095 <exec executable="${mg.home}/configure" os="${os.linux},${os.mac}"
1096 dir="${mg.home}">
1097 <arg value="--prefix=${basedir}"/>
1098 <arg value="--libdir=${lib.jni}"/>
1099 </exec>
1100 <echo>
1101 Configuring MGPP
1102 </echo>
1103 <exec executable="${mgpp.home}/configure" os="${os.linux},${os.mac}"
1104 dir="${mgpp.home}">
1105 <arg value="--prefix=${basedir}"/>
1106 <arg value="--libdir=${lib.jni}"/>
1107 </exec>
1108 </target>
1109
1110 <target name="clean-packages" depends="init,clean-packages-c++,clean-packages-java" description="Clean only the packages"/>
1111 <target name="clean-packages-c++" depends="init">
1112 <!-- mg : just call the make target -->
1113 <exec executable="make" os="${os.linux},${os.mac}"
1114 dir="${mg.home}">
1115 <arg value="clean"/>
1116 </exec>
1117 <!-- mgpp -->
1118 <exec executable="make" os="${os.linux},${os.mac}"
1119 dir="${mgpp.home}">
1120 <arg value="clean"/>
1121 </exec>
1122 </target>
1123 <target name="clean-packages-java" depends="init">
1124 <!-- vishnu : just call the ant target -->
1125 <ant antfile="${vishnu.home}/build.xml" dir="${vishnu.home}"
1126 inheritall="false" target="clean">
1127 <property name="catalina.home" value="${catalina.home}"/>
1128 </ant>
1129 <!-- gsdl-as : just call the ant target-->
1130 <ant antfile="${gsdl-as.home}/build.xml" dir="${gsdl-as.home}"
1131 inheritall="false" target="clean">
1132 <property name="catalina.home" value="${catalina.home}"/>
1133 </ant>
1134 </target>
1135
1136 <target name="clean-windows-c++-packages" depends="init" if="current.os.iswindows"
1137 description="Clean only the C/C++ packages">
1138 <exec executable="${mg.home}/winMake.bat" dir="${mg.home}">
1139 <arg value="clean"/>
1140 </exec>
1141 <exec executable="${mgpp.home}/winMake.bat" dir="${mgpp.home}">
1142 <arg value="clean"/>
1143 </exec>
1144 </target>
1145
1146 <target name="compile-packages"
1147 description="Compile only the packages">
1148 <echo>Compiling MG</echo>
1149 <exec executable="make" os="${os.linux},${os.mac}"
1150 dir="${mg.home}">
1151 </exec>
1152 <exec executable="make" os="${os.linux},${os.mac}"
1153 dir="${mg.home}">
1154 <arg value="install"/>
1155 </exec>
1156 <!-- windows: just the java stuff. -->
1157 <exec executable="${mg.home}/winMake.bat" os="${os.windows}"
1158 dir="${mg.home}">
1159 <arg value="compile"/>
1160 <arg value="javaonly"/>
1161 </exec>
1162 <!-- install the jar file -->
1163 <copy file="${mg.home}/mg.jar" todir="${lib.jni}"/>
1164
1165 <!-- mgpp -->
1166 <echo>Compiling MGPP</echo>
1167 <exec executable="make" os="${os.linux},${os.mac}"
1168 dir="${mgpp.home}">
1169 </exec>
1170 <exec executable="make" os="${os.linux},${os.mac}"
1171 dir="${mgpp.home}">
1172 <arg value="install"/>
1173 </exec>
1174 <!-- windows: just the java stuff. -->
1175 <exec executable="${mgpp.home}/winMake.bat" os="${os.windows}"
1176 dir="${mgpp.home}">
1177 <arg value="compile"/>
1178 <arg value="javaonly"/>
1179 </exec>
1180 <!-- install the jar file -->
1181 <copy file="${mgpp.home}/mgpp.jar" todir="${lib.jni}"/>
1182
1183 <!-- vishnu -->
1184 <echo>Compiling Vishnu</echo>
1185 <ant antfile="${vishnu.home}/build.xml" dir="${vishnu.home}"
1186 inheritall="false" target="compile">
1187 <property name="catalina.home" value="${catalina.home}"/>
1188 </ant>
1189
1190 <!-- gsdl-as -->
1191 <echo>Compiling GSDL-AS</echo>
1192 <ant antfile="${gsdl-as.home}/build.xml" dir="${gsdl-as.home}"
1193 inheritall="false" target="compile">
1194 <property name="catalina.home" value="${catalina.home}"/>
1195 </ant>
1196 </target>
1197
1198 <target name="compile-windows-c++-packages" depends="init" if="current.os.iswindows"
1199 description="Compile only the C/C++ packages">
1200 <exec executable="${mg.home}/winMake.bat" dir="${mg.home}"/>
1201 <exec executable="${mg.home}/winMake.bat" dir="${mg.home}">
1202 <arg value="install"/>
1203 <env key="GSDL3HOME" value="${basedir}"/>
1204 </exec>
1205 <exec executable="${mgpp.home}/winMake.bat" dir="${mgpp.home}"/>
1206 <exec executable="${mgpp.home}/winMake.bat" dir="${mgpp.home}">
1207 <arg value="install"/>
1208 <env key="GSDL3HOME" value="${basedir}"/>
1209 </exec>
1210 </target>
1211
1212 <!-- ================== gs2building targets ===============-->
1213
1214
1215 <target name="update-gs2building" if="gsdl2.islocal"
1216 depends="init,cvsupdate-gs2building,rename-gs2build-files,configure-gs2building,clean-gs2building,compile-gs2building"
1217 description="Update only the Greenstone 2 building components"/>
1218
1219 <target name="cvsupdate-gs2building" if="gsdl2.islocal" depends="init" unless="nocvs.mode">
1220 <cvs command="update -dP" dest="${gli.home}"/>
1221 <!-- Note: can't do a -d update here cos it will get all of gsdl
1222 also, an update doesn't get new files, so we do a checkout instead. -->
1223 <cvs command="co gs2build" dest="${basedir}"/>
1224 </target>
1225
1226 <target name="prepare-gs2building" depends="init,prepare-gs2build,prepare-gli" if="gsdl2.islocal">
1227 </target>
1228
1229 <target name="checkout-gs2build" depends="check-cvsroot,init" unless="nocvs.mode">
1230 <echo>checking out gs2build</echo>
1231 <cvs command="checkout -P" package="gs2build"/>
1232 </target>
1233
1234 <target name="prepare-gs2build" depends="init" if="gsdl2.islocal" unless="gs2build.present">
1235 <antcall target="checkout-gs2build"/>
1236 <!-- rename the .gs2build files -->
1237 <antcall target="rename-gs2build-files"/>
1238 <antcall target="unzip-windows-packages"/>
1239 <antcall target="get-windows-binaries"/>
1240 <antcall target="get-macos-extra"/>
1241 </target>
1242
1243 <target name="checkout-winbin" depends="init" if="current.os.iswindows"
1244 unless="nocvs.mode">
1245 <cvs command="checkout -P" package="winbin"/>
1246 </target>
1247
1248 <target name="get-windows-binaries" depends="init,checkout-winbin" if="current.os.iswindows">
1249 <copy todir="${basedir}/bin">
1250 <fileset dir="${basedir}/winbin/bin" includes="mg*.exe"/>
1251 </copy>
1252 <move todir="${gs2build.home}/bin/windows" failonerror="false">
1253 <fileset dir="${basedir}/winbin/bin"/>
1254 </move>
1255 <delete dir="${basedir}/winbin"/>
1256 </target>
1257
1258 <target name="unzip-windows-packages" depends="init">
1259 <unzip src="${gs2build.home}/packages/windows/gdbm/gdbm.zip"
1260 dest="${gs2build.home}/packages/windows/gdbm"/>
1261 <unzip src="${gs2build.home}/packages/windows/crypt/crypt.zip"
1262 dest="${gs2build.home}/packages/windows/crypt"/>
1263 <unzip src="${gs2build.home}/packages/windows/expat/expat.zip"
1264 dest="${gs2build.home}/packages/windows/expat"/>
1265 </target>
1266 <target name="get-macos-extra" depends="init" if="current.os.ismac">
1267 <get src="http://www.greenstone.org/gs3files/XML-Parser.tar.gz"
1268 dest="${gs2build.home}/perllib/cpan/XML-Parser.tar.gz"
1269 usetimestamp="true"/>
1270 <untar src="${gs2build.home}/perllib/cpan/XML-Parser.tar.gz"
1271 dest="${gs2build.home}/perllib/cpan/"
1272 compression="gzip"/>
1273 </target>
1274 <target name="rename-gs2build-files" depends="rename-gs2build-files-unix,rename-gs2build-files-windows"/>
1275
1276 <target name="rename-gs2build-files-windows" if="current.os.iswindows">
1277 <!-- we want a windows path in the setup.bat file -->
1278 <pathconvert targetos="windows" property="gs2build.home.windows">
1279 <path path="${gs2build.home}"/>
1280 </pathconvert>
1281
1282 <property name="gs2build-extra.home" value="${gs2build.home}/gs2build-extra"/>
1283 <copy file="${gs2build-extra.home}/lib.win32.mak" tofile="${gs2build.home}/lib/win32.mak"/>
1284 <copy file="${gs2build-extra.home}/win32.mak" tofile="${gs2build.home}/win32.mak"/>
1285 <copy file="${gs2build-extra.home}/setup.bat" tofile="${gs2build.home}/setup.bat">
1286 <filterset>
1287 <filter token="gsdlhome" value="${gs2build.home.windows}"/>
1288 </filterset>
1289 </copy>
1290 </target>
1291 <target name="rename-gs2build-files-unix" if="current.os.isunix">
1292 <property name="gs2build-extra.home" value="${gs2build.home}/gs2build-extra"/>
1293 <copy file="${gs2build-extra.home}/configure" tofile="${gs2build.home}/configure"/>
1294 <chmod file="${gs2build.home}/configure" perm="a+x"/>
1295 <copy file="${gs2build-extra.home}/configure.in" tofile="${gs2build.home}/configure.in"/>
1296 <copy file="${gs2build-extra.home}/Makefile.in" tofile="${gs2build.home}/Makefile.in"/>
1297 <copy file="${gs2build-extra.home}/packages.configure" tofile="${gs2build.home}/packages/configure"/>
1298 <chmod file="${gs2build.home}/packages/configure" perm="a+x"/>
1299 <copy file="${gs2build-extra.home}/packages.Makefile" tofile="${gs2build.home}/packages/Makefile"/>
1300 <copy file="${gs2build-extra.home}/lib.Makefile.in" tofile="${gs2build.home}/lib/Makefile.in"/>
1301
1302 </target>
1303 <target name="prepare-gli" depends="init" if="gsdl2.islocal" unless="gli.present">
1304 <antcall target="checkout-gli"/>
1305 </target>
1306
1307 <target name="checkout-gli" depends="check-cvsroot,init" if="gsdl2.islocal" unless="nocvs.mode">
1308 <echo>checking out gli</echo>
1309 <cvs command="checkout -P" package="gli"/>
1310 </target>
1311
1312 <target name="configure-gs2building" depends="init" if="gsdl2.islocal"
1313 description="Configure only the Greenstone 2 building components">
1314 <exec executable="${gs2build.home}/configure" os="${os.linux}"
1315 dir="${gs2build.home}">
1316 <arg value="--prefix=${gs2build.home}"/>
1317 </exec>
1318 <exec executable="${gs2build.home}/configure" os="${os.mac}"
1319 dir="${gs2build.home}">
1320 <arg value="--prefix=${gs2build.home}"/>
1321 <arg value="--with-gdbm=${gdbm.installed.path}"/>
1322 </exec>
1323 </target>
1324
1325 <target name="clean-gs2building" depends="init,clean-gli,clean-gs2build" if="gsdl2.islocal"
1326 description="Clean only the Greenstone 2 building components"/>
1327 <target name="clean-gli" depends="init">
1328 <!-- gli -->
1329 <property name="gli.home" value="${basedir}/gli"/>
1330 <!-- linux -->
1331 <exec executable="clean.sh" os="${os.linux},${os.mac}" dir="${gli.home}"
1332 resolveExecutable="true"/>
1333 <!-- windows -->
1334 <exec executable="clean.bat" os="${os.windows}" dir="${gli.home}"
1335 resolveExecutable="true"/>
1336 </target>
1337 <target name="clean-gs2build" depends="init">
1338 <!-- gs2build -->
1339 <!--linux: -->
1340 <exec executable="make" os="${os.linux},${os.mac}" dir="${gs2build.home}">
1341 <arg value="clean"/>
1342 </exec>
1343 <!-- windows: -->
1344 </target>
1345
1346 <target name="clean-windows-c++-gs2building" depends="init" if="current.os.iswindows"
1347 description="remove all object files and executables">
1348 <!-- run the setup script -->
1349 <exec executable="${compile.windows.c++.setup}"/>
1350 <exec executable="nmake" dir="${gs2build.home}">
1351 <arg value="/f"/>
1352 <arg value="win32.mak"/>
1353 <arg value="clean"/>
1354 </exec>
1355 </target>
1356
1357 <target name="compile-gs2building" depends="init" if="gsdl2.islocal"
1358 description="Compile only the Greenstone 2 building components">
1359 <!-- gli -->
1360 <property name="gli.home" value="${basedir}/gli"/>
1361 <!-- linux -->
1362 <exec executable="makegli.sh" os="${os.linux},${os.mac}" dir="${gli.home}"
1363 resolveExecutable="true"/>
1364 <!-- windows -->
1365 <exec executable="makegli.bat" os="${os.windows}" dir="${gli.home}"
1366 resolveExecutable="true"/>
1367 <!-- gs2build -->
1368 <!--linux: make, make install -->
1369 <exec executable="make" os="${os.linux},${os.mac}" dir="${gs2build.home}">
1370 </exec>
1371 <exec executable="make" os="${os.linux},${os.mac}" dir="${gs2build.home}">
1372 <arg value="install"/>
1373 </exec>
1374 </target>
1375 <!-- windows: -->
1376 <target name="compile-windows-c++-gs2building" depends="init" if="current.os.iswindows"
1377 description="Use this if you want to compile the C++ code for the gs2build package">
1378 <!-- run the setup script -->
1379 <exec executable="${compile.windows.c++.setup}"/>
1380 <exec executable="nmake" dir="${gs2build.home}">
1381 <arg value="/f"/>
1382 <arg value="win32.mak"/>
1383 </exec>
1384 </target>
1385 <target name="gli" description="Run the Greenstone Librarian Interface" depends="gli-local,gli-external">
1386 </target>
1387
1388 <target name="gli-local" depends="init" if="gsdl2.islocal">
1389 <exec executable="${basedir}/gli/gli4gs3.sh" os="${os.linux}" dir="${basedir}/gli" spawn="true">
1390 <env key="gsdl3path" path="${basedir}"/>
1391 <env key="gsdlpath" path="${basedir}/gs2build"/>
1392 </exec>
1393 <exec executable="${basedir}/gli/gli4gs3.sh" os="${os.mac}" dir="${basedir}/gli" spawn="true">
1394 <env key="gsdl3path" path="${basedir}"/>
1395 <env key="gsdlpath" path="${basedir}/gs2build"/>
1396 <env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH}:${gdbm.installed.path}/lib"/>
1397 </exec>
1398 <exec executable="${basedir}/gli/gli4gs3.bat" os="${os.windows}" dir="${basedir}/gli" spawn="true">
1399 <env key="GSDL3PATH" path="${basedir}"/>
1400 <env key="GSDLPATH" path="${basedir}/gs2build"/>
1401 </exec>
1402 <echo>Running GLI from Ant means that you don't get to see any of the terminal output. If you have problems with GLI and want to see the output, please run the script gli4gs3.sh/bat from the gsdl3/gli directory.
1403 </echo>
1404 </target>
1405
1406 <target name="gli-external" depends="init" unless="gsdl2.islocal">
1407 <exec executable="${gsdl2.installed.path}/gli/gli4gs3.sh" os="${os.linux},${os.mac}" dir="${gsdl2.installed.path}/gli" spawn="true">
1408 <env key="gsdl3path" path="${basedir}"/>
1409 <env key="gsdlpath" path="${gsdl2.installed.path}"/>
1410 </exec>
1411 <exec executable="${gsdl2.installed.path}/gli/gli4gs3.bat" os="${os.windows}" dir="${gsdl2.installed.path}/gli" spawn="true">
1412 <env key="GSDL3PATH" path="${basedir}"/>
1413 <env key="GSDLPATH" path="${gsdl2.installed.path}"/>
1414 </exec>
1415 <echo>Running GLI from Ant means that you don't get to see any of the terminal output. If you have problems with GLI and want to see the output, please run the following in a terminal/command prompt:
1416 (Linux/Mac OS X / Windows)
1417in gsdl3 directory: source gs3-setup.sh / gs3-setup
1418in gsdl directory: source setup.bash / setup
1419in gli directory: gli4gs3.sh / gli4gs3
1420 </echo>
1421 </target>
1422
1423
1424<!-- ======================== TESTING Targets ========================= -->
1425
1426 <target name="test" description="Run the (incomplete) JUnit test suite "
1427 depends="init">
1428 <mkdir dir="${basedir}/test"/>
1429 <junit printsummary="withOutAndErr"
1430 errorproperty="test.failed"
1431 failureproperty="test.failed"
1432 fork="${junit.fork}">
1433 <formatter type="plain"/>
1434 <classpath>
1435 <pathelement location="${build.home}/gsdl3test.jar"/>
1436 <path refid="compile.classpath"/>
1437 </classpath>
1438 <test name="${testcase}" if="testcase"/>
1439 <batchtest todir="${basedir}/test" unless="testcase">
1440 <fileset dir="${build.home}"
1441 includes="**/*Test.class"
1442 />
1443 </batchtest>
1444 </junit>
1445 <echo>
1446 *********************************************
1447 Test output can be found in directory 'test'
1448 *********************************************
1449 </echo>
1450 </target>
1451
1452
1453<!-- ====================== DISTRIBUTION Targets ========================= -->
1454
1455 <target name="prepare-for-dist-1" depends="init">
1456 <cvs command="export -D '1 second ago'" package="mgpp"
1457 dest="${basedir}/packages/"
1458 cvsRoot=":pserver:[email protected]:2402/usr/local/global-cvs/gsdl-src" />
1459 <cvs command="export -D '1 second ago'" package="gs2build"
1460 cvsRoot=":pserver:[email protected]:2402/usr/local/global-cvs/gsdl-src" />
1461 <cvs command="export -D '1 second ago'" package="gli"
1462 cvsRoot=":pserver:[email protected]:2402/usr/local/global-cvs/gsdl-src" />
1463 <antcall target="rename-gs2build-files-unix"/>
1464 <antcall target="unzip-windows-packages"/>
1465 <antcall target="get-windows-binaries"/>
1466 <antcall target="get-perl-for-windows"/>
1467 <antcall target="prepare-mysql"/>
1468 <delete file="${packages.home}/mysql-standard-4.1.11-pc-linux-gnu-i686.tar.gz"/>
1469 <delete dir="${packages.home}/mysql/sql-bench"/>
1470 <delete dir="${packages.home}/mysql/tests"/>
1471 <delete dir="${packages.home}/mysql/mysql-test"/>
1472 <antcall target="prepare-tomcat"/>
1473 <delete file="${basedir}/comms/jakarta/jakarta-tomcat-5.5.7.zip"/>
1474 <delete file="${basedir}/comms/jakarta/jakarta-tomcat-5.5.7-compat.zip"/>
1475 <antcall target="configure-tomcat"/>
1476 <antcall target="prepare-axis"/>
1477 <delete file="${basedir}/comms/soap/axis-bin-1_2_1.zip"/>
1478 <!-- delete old axis dir -->
1479 <delete dir="${basedir}/comms/soap/axis"/>
1480 <antcall target="prepare-web"/>
1481 </target>
1482
1483 <target name="prepare-for-dist-2" depends="init">
1484 <antcall target="configure-c++"/>
1485 </target>
1486
1487 <target name="prepare-for-dist-3" depends="init">
1488 <antcall target="compile"/>
1489 <antcall target="clean-packages-c++"/>
1490 <antcall target="clean-gs2build"/>
1491 <antcall target="deploy-localsite"/>
1492 <xslt in="build.xml" out="dist-build.xml" style="dist-resources/convert-build-xml.xsl"/>
1493 <delete dir="${basedir}/dist-resources"/>
1494 </target>
1495
1496 <target name="get-perl-for-windows" if="current.os.iswindows">
1497 <get src="http://www.greenstone.org/gs3files/perl-for-windows.zip"
1498 dest="${gs2build.home}/bin/windows/perl-for-windows.zip"
1499 usetimestamp="true"/>
1500 <unzip src="${gs2build.home}/bin/windows/perl-for-windows.zip"
1501 dest="${gs2build.home}/bin/windows"/>
1502 <delete file="${gs2build.home}/bin/windows/perl-for-windows.zip"/>
1503 </target>
1504
1505 <target name="install-for-dist" depends="accept-properties,init,configure-mysql,configure,configure-tomcat">
1506 <condition property="need.xml.jars">
1507 <equals arg1="1.5" arg2="${ant.java.version}"/>
1508 </condition>
1509 <antcall target="rename-xml-jars"/>
1510 <antcall target="rename-gs2build-files-windows"/>
1511 </target>
1512</project>
1513
1514
Note: See TracBrowser for help on using the repository browser.