Changeset 10116
- Timestamp:
- 2005-06-15T16:13:30+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/build.xml
r10101 r10116 82 82 83 83 <property name="os.linux" value="Linux"/> <!-- mac??--> 84 <property name="os.windows" value="Windows 95,Windows 98,Windows 2000,Windows XP, 84 <property name="os.windows" value="Windows 95,Windows 98,Windows 2000,Windows XP,Windows NT,Windows ME"/> <!-- check this!!!--> 85 85 86 86 <condition property="current.os.islinux"> … … 187 187 </path> 188 188 189 <target name="test-java"> 190 <echo>${ant.java.version}</echo> 189 <target name="test-setup"> 190 <echo>ant java version=${ant.java.version}</echo> 191 <echo>is linux : ${current.os.islinux}</echo> 192 <echo>is windows : ${current.os.iswindows}</echo> 191 193 </target> 192 194 <!-- ==================== Primary and Global Targets ============================= --> … … 194 196 <!-- add comments about using xxx-core, xxx-packages if only want certain parts?? --> 195 197 196 <target name="install" depends="accept-properties,init,prepare,cvsupdate,configure,clean,compile,deploy-localsite" 197 description="Install Greenstone 3. Use this when you first checkout the code. Also running this target later on will reinstall Greenstone. Most things will be reset back to their defaults, except for code changes."/> 198 199 <target name="prepare" depends="init,prepare-core,prepare-packages,prepare-gs2building,prepare-tomcat,prepare-axis,prepare-mysql,prepare-web"/> 200 198 <target name="install" depends="init,configure,configure-c++,compile,deploy-localsite" 199 description="Install Greenstone 3. Use this when you first checkout the code: 'ant prepare install'."/> 200 201 <target name="prepare" depends="accept-properties,init,prepare-core,prepare-packages,prepare-gs2building,prepare-tomcat,prepare-axis,prepare-mysql,prepare-web" 202 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."/> 203 201 204 <target name="cvsupdate" depends="init,cvsupdate-packages,cvsupdate-core,cvsupdate-gs2building,cvsupdate-web" 202 description="Do a cvs update for all sources. Doesn't recompile the code."/> 203 204 <target name="configure" depends="init,configure-tomcat,configure-web,configure-packages,configure-core,configure-gs2building" 205 description="Configure the installation. Includes setting up config files and configuring the C/C++ packages. This is called from install and update. Should be re-run if you change the build.properties file."/> 205 description="Do a cvs update for all sources. Doesn't recompile the code. You need to be online to run this."/> 206 207 <target name="configure-c++" depends="init,configure-packages,configure-core,configure-gs2building" 208 description="Configure any C/C++ package code and gs2building code if necessary"/> 209 210 <target name="configure" depends="init,configure-tomcat,configure-web" 211 description="Configure the installation. Includes setting up config files. Should be re-run if you change the build.properties file."/> 206 212 207 213 <target name="clean" depends="init,clean-packages,clean-core,clean-gs2building" … … 209 215 <target name="clean-windows-c++" depends="init,clean-windows-c++-gs2building,clean-windows-c++-packages" 210 216 description="Remove C++ compiled code for Windows. Requires Microsoft Visual Studio"/> 217 211 218 <target name="compile" depends="init,compile-web,compile-packages,compile-core,compile-gs2building" 212 219 description="Compile all the source code, includes core, packages and gs2building if necessary. Copy jar files and executables to their correct places."/> 220 213 221 <target name="compile-windows-c++" depends="init,compile-windows-c++-gs2building,compile-windows-c++-packages" 214 222 description="Compile the C/C++ code for Windows. Requires Microsoft Visual Studio"/> 215 <target name="update" depends="init,update-packages,update-core,update-gs2building,update-web" 216 description="Update (thru CVS) all the source (including core, packages and gs2building) and recompile. Similar to install but doesn't reinstall components such as Tomcat and axis."/> 223 224 <target name="update" depends="init,cvsupdate,clean,configure,configure-c++,compile" 225 description="Update (thru CVS) all the source (including core, packages and gs2building), then clean, configure and recompile."/> 217 226 218 227 <target name="start" depends="init,start-mysql,start-tomcat" … … 222 231 description="Shutdown the (local) Greenstone servers."/> 223 232 224 <target name="restart" description="Shutdown and restart the Greenstone servers" depends="init,stop,start"/>233 <target name="restart" description="Shutdown and restart the (local) Greenstone servers" depends="init,stop,start"/> 225 234 226 235 … … 230 239 <echo message=" Execute 'ant -projecthelp' for a list of targets."/> 231 240 <echo message=" Execute 'ant -help' for Ant help."/> 232 <echo>To install Greenstone , run 'ant [options]install'.241 <echo>To install Greenstone3, run 'ant [options] prepare install'. 233 242 There 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. 234 243 To log the output, use the '-logfile build.log' option. 244 The README.txt file has more information about the ant targets and install process. 235 245 </echo> 236 246 </target> … … 274 284 <fail if="cvsroot.notset" message="You need to set the CVSROOT variable"/> 275 285 </target> 286 276 287 <!-- this sets up some initial properties --> 277 288 <target name="init"> … … 370 381 </target> 371 382 372 <target name="configure-web" depends="configure-web-gsdl3,configure-web-server"/> 383 <target name="configure-web" depends="configure-web-gsdl3,configure-web-server" 384 description="Configure only the web app config files"/> 373 385 374 386 <target name="configure-web-gsdl3" depends="init"> … … 397 409 </target> 398 410 399 <target name="cvsupdate-web" >411 <target name="cvsupdate-web" unless="offline.mode"> 400 412 <cvs command="update -dP" dest="${web.home}"/> 401 413 </target> 402 414 403 <target name="update-web" depends="init,cvsupdate-web,configure-web"/> 415 <target name="update-web" depends="init,cvsupdate-web,configure-web" 416 description="update only the web stuff (config files)"/> 417 404 418 405 419 <!-- ======================= Tomcat Targets ========================== --> … … 632 646 <sleep seconds="2"/> 633 647 <!-- need to test that the server has started up --> 648 <echo>testing mysql server</echo> 634 649 <exec executable="${mysql.home}/bin/mysql" dir="${mysql.home}" 635 650 failonerror="true" outputproperty="throw.away"> … … 771 786 772 787 <target name="configure-core"/> 788 773 789 <target name="update-core" depends="init,cvsupdate-core,clean-core,compile-core" 774 790 description="Update only the Greenstone core" /> 775 791 776 <target name="cvsupdate-core" >792 <target name="cvsupdate-core" unless="offline.mode"> 777 793 <cvs command="update -l"/> 778 794 <cvs command="update -dP bin comms dist-resources docs lib resources src winutil"/> … … 850 866 description="Update only the packages"/> 851 867 852 <target name="cvsupdate-packages" >868 <target name="cvsupdate-packages" unless="offline.mode"> 853 869 <cvs command="update -dP" dest="${packages.home}"/> 854 870 </target> … … 980 996 description="Update only the Greenstone 2 building components"/> 981 997 982 <target name="cvsupdate-gs2building" if="gsdl2.islocal" depends="init" >998 <target name="cvsupdate-gs2building" if="gsdl2.islocal" depends="init" unless="offline.mode"> 983 999 <cvs command="update -dP" dest="${gli.home}"/> 984 1000 <!-- Note: can't do a -d update here cos it will get all of gsdl … … 1180 1196 1181 1197 1182 <target name="reconfigure-server-settings" depends="init,configure-tomcat,configure-web-server"1183 description="If you have changed any of the Tomcat properties in the build.properties file, run this target to update the Tomcat configuration, and any Greenstone configuration files that specify the server address">1184 </target>1185 1198 1186 1199
Note:
See TracChangeset
for help on using the changeset viewer.