Changeset 9840 for branches


Ignore:
Timestamp:
2005-05-09T11:27:12+12:00 (19 years ago)
Author:
kjdon
Message:

in target names, changed startup to start and shutdown to stop, also added a reconfigure-server-settings target, which does everything necessary to change tomcats port number.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ant-install-branch/gsdl3/build.xml

    r9837 r9840  
    190190    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."/>
    191191
    192   <target name="startup" depends="init,startup-mysql,startup-tomcat"
     192  <target name="start" depends="init,start-mysql,start-tomcat"
    193193    description="Startup the (local) Greenstone servers (tomcat,mysql...)" />
    194194
    195   <target name="shutdown" depends="init,shutdown-tomcat,shutdown-mysql"
     195  <target name="stop" depends="init,stop-tomcat,stop-mysql"
    196196    description="Shutdown the (local) Greenstone servers."/>
    197197 
    198   <target name="restart" description="Shutdown and restart the Greenstone servers" depends="init,shutdown,startup"/>
     198  <target name="restart" description="Shutdown and restart the Greenstone servers" depends="init,stop,start"/>
    199199
    200200
     
    350350      tofile="${basedir}/web/lib/xercesImpl.jar"/>
    351351  </target>
    352   <target name="configure-files" depends="init">
     352
     353  <target name="configure-files" depends="configure-files-gsdl3,configure-files-server"/>
     354 
     355  <target name="configure-files-gsdl3" depends="init">
     356    <filter token="gsdl3home" value="${basedir}"/>
     357    <copy file="${basedir}/web/WEB-INF/web.xml.in" tofile="${basedir}/web/WEB-INF/web.xml" filtering="true"/>
     358    <copy file="${basedir}/resources/java/SOAPServer.cfg.in" tofile="${basedir}/resources/java/SOAPServer.cfg" filtering="true"/>
     359  </target>
     360 
     361  <target name="configure-files-server" depends="init">
    353362    <filter token="port" value="${tomcat.port}"/>
    354363    <filter token="hostname" value="${tomcat.server}"/>
    355     <filter token="gsdl3home" value="${basedir}"/>
    356     <copy file="${basedir}/web/WEB-INF/web.xml.in" tofile="${basedir}/web/WEB-INF/web.xml" filtering="true"/>
    357364    <copy file="${basedir}/web/sites/localsite/siteConfig.xml.in" tofile="${basedir}/web/sites/localsite/siteConfig.xml" filtering="true"/>
    358365    <copy file="${basedir}/web/sites/gateway/siteConfig.xml.in" tofile="${basedir}/web/sites/gateway/siteConfig.xml" filtering="true"/>
    359     <copy file="${basedir}/resources/java/SOAPServer.cfg.in" tofile="${basedir}/resources/java/SOAPServer.cfg" filtering="true"/>
    360 
    361366  </target>
    362367
     
    429434  </target>
    430435 
    431   <target name="startup-tomcat" description="Startup only Tomcat" depends="init" if="tomcat.islocal">
     436  <target name="start-tomcat" description="Startup only Tomcat" depends="init" if="tomcat.islocal">
    432437    <property name="tomcat.classpath" refid="compile.classpath"/>
    433438    <property name="tomcat.path" refid="running.path"/>
     
    459464  </target>
    460465  <!-- windows: do we want to launch a webrowser?? -->
    461   <target name="shutdown-tomcat" description="Shutdown only Tomcat" depends="init" if="tomcat.islocal">
     466  <target name="stop-tomcat" description="Shutdown only Tomcat" depends="init" if="tomcat.islocal">
    462467    <exec executable="${catalina.home}/bin/shutdown.sh" os="${os.linux}" dir="${catalina.home}/bin" spawn="false">
    463468      <env key="CATALINA_HOME" value="${catalina.home}"/>
     
    466471  </target>
    467472
    468   <target name="restart-tomcat" description="Shutdown and restart only Tomcat" depends="init,shutdown-tomcat,startup-tomcat"/>
     473  <target name="restart-tomcat" description="Shutdown and restart only Tomcat" depends="init,stop-tomcat,start-tomcat"/>
    469474
    470475  <target name="setup-catalina-ant-tasks">
     
    492497
    493498  <!-- this is one target that we only want to run once. -->
    494   <target name="prepare-mysql" depends="init,init-mysql-vars,install-mysql,startup-mysql,setup-mysql,shutdown-mysql"/>
     499  <target name="prepare-mysql" depends="init,init-mysql-vars,install-mysql,start-mysql,setup-mysql,stop-mysql"/>
    495500
    496501  <target name="init-mysql-vars">
     
    579584  </target>
    580585 
    581   <target name="startup-mysql" depends="init,init-mysql-vars" if="mysql.islocal"
     586  <target name="start-mysql" depends="init,init-mysql-vars" if="mysql.islocal"
    582587    description="Startup only mysql">
    583588    <exec executable="${mysql.home}/bin/mysqld_safe" dir="${mysql.home}"
     
    602607  </target>
    603608
    604     <target name="shutdown-mysql" depends="init" if="mysql.islocal"
     609    <target name="stop-mysql" depends="init" if="mysql.islocal"
    605610    description="Shutdown only mysql">
    606611    <exec executable="${mysql.home}/bin/mysqladmin" dir="${mysql.home}"
     
    618623  </target>
    619624
    620   <target name="restart-mysql" description="Shutdown and restart only mysql" depends="init,shutdown-mysql,startup-mysql"/>
     625  <target name="restart-mysql" description="Shutdown and restart only mysql" depends="init,stop-mysql,start-mysql"/>
    621626
    622627
     
    664669
    665670  <target name="deploy-localsite" depends="init">
    666     <antcall target="startup-tomcat"/>
     671    <antcall target="start-tomcat"/>
    667672    <antcall target="soap-deploy-site">
    668673      <param name="axis.sitename" value="localsite"/>
    669674      <param name="axis.siteuri" value="localsite"/>
    670675    </antcall>
    671     <antcall target="shutdown-tomcat"/>
     676    <antcall target="stop-tomcat"/>
    672677  </target>
    673678 
     
    11341139
    11351140
     1141  <target name="reconfigure-server-settings" depends="init,configure-tomcat,configure-files-server"
     1142    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">
     1143  </target>
     1144
    11361145
    11371146</project>
Note: See TracChangeset for help on using the changeset viewer.