Changeset 10301


Ignore:
Timestamp:
2005-07-25T16:47:29+12:00 (19 years ago)
Author:
kjdon
Message:

changed the configure stuff for web - only need to update global.properties.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/build.xml

    r10235 r10301  
    363363      </or>
    364364    </condition>
    365     <getuserandpassword message="Using proxy: ${proxy.host}:${proxy.port}" if="ask.user" username="${proxy.user}"/>
    366     <mysetproxy proxyhost="${proxy.host}" proxyport="${proxy.port}" proxyuser="${proxy.user}" proxypassword="${proxy.password}"/>
     365    <getuserandpassword message="Using proxy: ${proxy.host}:${proxy.port}" if="ask.user" username="${proxy.user}" userproperty="proxy.username" pwordproperty="proxy.password"/>
     366    <mysetproxy proxyhost="${proxy.host}" proxyport="${proxy.port}" proxyuser="${proxy.username}" proxypassword="${proxy.password}"/>
    367367  </target>
    368368 
     
    407407    <copy file="${web.lib}/xercesImpl.jar.tmp" tofile="${web.lib}/xercesImpl.jar"/>
    408408  </target>
    409   <target name="configure-web" depends="configure-web-gsdl3,configure-web-server"
    410     description="Configure only the web app config files"/>
    411  
    412   <target name="configure-web-gsdl3" depends="init">
     409 
     410  <target name="configure-web" depends="init"
     411    description="Configure only the web app config files">
    413412    <filter token="gsdl3home" value="${web.home}"/>
    414     <copy file="${web.home}/WEB-INF/web.xml.in" tofile="${web.home}/WEB-INF/web.xml" filtering="true" overwrite="true" />
    415     <copy file="${basedir}/resources/soap/SOAPServer.cfg.in" tofile="${web.classes}/SOAPServer.cfg" filtering="true" overwrite="true"/>
    416   </target>
    417  
    418   <target name="configure-web-server" depends="init">
    419     <filter token="port" value="${tomcat.port}"/>
    420     <filter token="hostname" value="${tomcat.server}"/>
    421     <copy file="${web.home}/sites/localsite/siteConfig.xml.in" tofile="${web.home}/sites/localsite/siteConfig.xml" filtering="true" overwrite="true"/>
    422     <copy file="${web.home}/sites/gateway/siteConfig.xml.in" tofile="${web.home}/sites/gateway/siteConfig.xml" filtering="true" overwrite="true"/>
    423   </target>
    424 
    425    <target name="compile-web" depends="init">
     413    <filter token="mysql.port" value="${mysql.port}"/>
     414    <filter token="mysql.server" value="${mysql.server}"/>
     415     <!-- need to prompt for passwords -->
     416    <filter token="mysql.admin.pword" value="greenstone"/>
     417    <filter token="mysql.reader.pword" value="greenstone"/>
     418    <copy file="${basedir}/resources/java/global.properties.in" tofile="${web.classes}/global.properties" filtering="true" overwrite="true"/> 
     419  </target>
     420
     421  <target name="compile-web" depends="init">
    426422    <javac srcdir="${web.classes}"
    427423      destdir="${web.classes}"
     
    444440
    445441<!-- ======================= Tomcat Targets ========================== -->
    446 
     442 
    447443  <!-- this target sets up tomcat for the first time, or resets it any subsequent times -->
    448444  <target name="prepare-tomcat" depends="init,setup-proxy" if="tomcat.islocal">
     
    521517      <env key="CATALINA_HOME" value="${catalina.home}"/>
    522518      <env key="CLASSPATH" path="${tomcat.classpath}"/>
    523       <env key="LD_LIBRARY_PATH" path="${env.LD_LIBRARY_PATH}:${lib.jni}:${mysql.home}/lib/mysql"/>
    524       <env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH}:${lib.jni}:${mysql.home}/lib/mysql"/> <!-- for mac-->
     519      <env key="LD_LIBRARY_PATH" path="${env.LD_LIBRARY_PATH}:${lib.jni}"/>
     520      <env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH}:${lib.jni}"/>
     521<!--      <env key="LD_LIBRARY_PATH" path="${env.LD_LIBRARY_PATH}:${lib.jni}:${mysql.home}/lib/mysql"/>
     522     
     523      <env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH}:${lib.jni}:${mysql.home}/lib/mysql"/>--> <!-- for mac-->
    525524    </exec>
    526525    <exec executable="${catalina.home}/bin/startup.bat" os="${os.windows}" dir="${catalina.home}/bin" spawn="true">
Note: See TracChangeset for help on using the changeset viewer.