Changeset 10116


Ignore:
Timestamp:
2005-06-15T16:13:30+12:00 (19 years ago)
Author:
kjdon
Message:

made a few changes to the main targets: separated online and offline bits, install no longer does a cvs update or prepare - prepare needs to be run first, added some more descriptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/build.xml

    r10101 r10116  
    8282
    8383  <property name="os.linux" value="Linux"/> <!-- mac??-->
    84   <property name="os.windows" value="Windows 95,Windows 98,Windows 2000,Windows XP, Windows NT,Windows ME"/> <!-- check this!!!-->
     84  <property name="os.windows" value="Windows 95,Windows 98,Windows 2000,Windows XP,Windows NT,Windows ME"/> <!-- check this!!!-->
    8585
    8686  <condition property="current.os.islinux">
     
    187187  </path>
    188188
    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>
    191193  </target>
    192194<!-- ==================== Primary and Global Targets ============================= -->
     
    194196  <!-- add comments about using xxx-core, xxx-packages if only want certain parts?? -->
    195197
    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 
    201204  <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."/>
    206212
    207213  <target name="clean" depends="init,clean-packages,clean-core,clean-gs2building"
     
    209215  <target name="clean-windows-c++" depends="init,clean-windows-c++-gs2building,clean-windows-c++-packages"
    210216    description="Remove C++ compiled code for Windows. Requires Microsoft Visual Studio"/>
     217 
    211218  <target name="compile" depends="init,compile-web,compile-packages,compile-core,compile-gs2building"
    212219    description="Compile all the source code, includes core, packages and gs2building if necessary. Copy jar files and executables to their correct places."/>
     220 
    213221  <target name="compile-windows-c++" depends="init,compile-windows-c++-gs2building,compile-windows-c++-packages"
    214222    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."/>
    217226
    218227  <target name="start" depends="init,start-mysql,start-tomcat"
     
    222231    description="Shutdown the (local) Greenstone servers."/>
    223232 
    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"/>
    225234
    226235
     
    230239    <echo message="  Execute 'ant -projecthelp' for a list of targets."/>
    231240    <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'.
    233242There 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.
    234243To log the output, use the '-logfile build.log' option.
     244The README.txt file has more information about the ant targets and install process.
    235245    </echo>
    236246  </target>
     
    274284    <fail if="cvsroot.notset" message="You need to set the CVSROOT variable"/>
    275285  </target>
     286
    276287  <!-- this sets up some initial properties -->
    277288  <target name="init">
     
    370381  </target>
    371382
    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"/>
    373385 
    374386  <target name="configure-web-gsdl3" depends="init">
     
    397409  </target>
    398410
    399   <target name="cvsupdate-web">
     411  <target name="cvsupdate-web" unless="offline.mode">
    400412    <cvs command="update -dP" dest="${web.home}"/>
    401413  </target>
    402414
    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
    404418
    405419<!-- ======================= Tomcat Targets ========================== -->
     
    632646    <sleep seconds="2"/>
    633647    <!-- need to test that the server has started up -->   
     648    <echo>testing mysql server</echo>
    634649    <exec executable="${mysql.home}/bin/mysql" dir="${mysql.home}"
    635650      failonerror="true" outputproperty="throw.away">
     
    771786 
    772787  <target name="configure-core"/>
     788
    773789  <target name="update-core" depends="init,cvsupdate-core,clean-core,compile-core"
    774790    description="Update only the Greenstone core" />
    775791 
    776   <target name="cvsupdate-core">
     792  <target name="cvsupdate-core" unless="offline.mode">
    777793    <cvs command="update -l"/>
    778794    <cvs command="update -dP bin comms dist-resources docs lib resources src winutil"/>
     
    850866    description="Update only the packages"/>
    851867
    852   <target name="cvsupdate-packages">
     868  <target name="cvsupdate-packages" unless="offline.mode">
    853869    <cvs command="update -dP" dest="${packages.home}"/>
    854870  </target>
     
    980996    description="Update only the Greenstone 2 building components"/>
    981997
    982   <target name="cvsupdate-gs2building" if="gsdl2.islocal" depends="init">
     998  <target name="cvsupdate-gs2building" if="gsdl2.islocal" depends="init" unless="offline.mode">
    983999    <cvs command="update -dP" dest="${gli.home}"/>
    9841000    <!-- Note: can't do a -d update here cos it will get all of gsdl
     
    11801196
    11811197
    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>
    11851198
    11861199
Note: See TracChangeset for help on using the changeset viewer.