Ignore:
Timestamp:
2005-05-02T13:16:08+12:00 (19 years ago)
Author:
kjdon
Message:

added CATALINA_HOME to the environment for tomcat startup and shutdown, and added a deploy-localsite target, which is used during install

File:
1 edited

Legend:

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

    r9779 r9792  
    168168  <!-- add comments about using xxx-core, xxx-packages if only want certain parts?? -->
    169169
    170   <target name="install" depends="accept-properties,init,prepare,cvsupdate,configure,clean,compile"
     170  <target name="install" depends="accept-properties,init,prepare,cvsupdate,configure,clean,compile,deploy-localsite"
    171171    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."/>
    172172
     
    425425            path="/gsdl3"/>
    426426  </target>
    427 
    428 
     427 
    429428  <target name="startup-tomcat" description="Startup only Tomcat" depends="init" if="tomcat.islocal">
    430429    <property name="tomcat.classpath" refid="compile.classpath"/>
     
    436435      <env key="PATH" path="${tomcat.path}"/>
    437436      <env key="CATALINA_OPTS" value="${catalina.opts}"/>
     437      <env key="CATALINA_HOME" value="${catalina.home}"/>
    438438      <env key="CLASSPATH" path="${tomcat.classpath}"/>
    439439      <env key="LD_LIBRARY_PATH" path="${env.LD_LIBRARY_PATH}:${basedir}/lib:${mysql.home}/lib/mysql"/>
     
    457457  <!-- windows: do we want to launch a webrowser?? -->
    458458  <target name="shutdown-tomcat" description="Shutdown only Tomcat" depends="init" if="tomcat.islocal">
    459     <exec executable="${catalina.home}/bin/shutdown.sh" os="${os.linux}" dir="${catalina.home}/bin" spawn="false"/>
     459    <exec executable="${catalina.home}/bin/shutdown.sh" os="${os.linux}" dir="${catalina.home}/bin" spawn="false">
     460      <env key="CATALINA_HOME" value="${catalina.home}"/>
     461    </exec>
    460462    <exec executable="${catalina.home}/bin/shutdown.bat" os="${os.windows}" dir="${catalina.home}/bin" spawn="false"/>
    461463  </target>
     
    658660  </target>
    659661
     662  <target name="deploy-localsite" depends="init">
     663    <antcall target="startup-tomcat"/>
     664    <antcall target="soap-deploy-site">
     665      <param name="axis.sitename" value="localsite"/>
     666      <param name="axis.siteuri" value="localsite"/>
     667    </antcall>
     668    <antcall target="shutdown-tomcat"/>
     669  </target>
     670 
    660671  <target name="get-sitename" unless="axis.sitename">
    661672    <input addproperty="axis.sitename" message="What site? (press enter for default:localsite)" defaultvalue="localsite"/>
Note: See TracChangeset for help on using the changeset viewer.