Changeset 9516


Ignore:
Timestamp:
2005-03-30T15:55:58+12:00 (19 years ago)
Author:
kjdon
Message:

soem changes

File:
1 edited

Legend:

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

    r9513 r9516  
    8383  <property name="applet.home" value="${src.home}/org/greenstone/applet"/>
    8484  <property name="gsdl3.home" value="${src.home}/org/greenstone/gsdl3"/>
    85   <property name="gs2extra.home" value="${basedir}/gs2extra"/>
     85  <property name="gs2build.home" value="${basedir}/gs2building"/>
    8686  <property name="vishnu.home" value="${packages.home}/vishnu"/>
    8787  <property name="mg.home" value="${packages.home}/mg"/>
     
    359359  <target name="install" depends="install-packages, install-gsdl3"
    360360    description="install all binaries"/>
     361 
    361362  <target name="install-packages" depends="compile-packages"
    362363    description="">
     
    400401<!-- ===================== setup target ===================== -->
    401402  <target name="accept-properties">
    402     <input addproperty="properties.ok" validargs="y,n">The following properties are being used from a build.properties file found in this directory:
    403 tomcat.servername=${tomcat.servername}, tomcat.port=${tomcat.port}, gsdl.path=${gsdl.path} (this is the location of Greenstone 2 if you have it).
     403    <input addproperty="properties.ok" validargs="y,n">The following properties (among others) are being used from a build.properties file found in this directory:
     404tomcat.server=${tomcat.server}
     405tomcat.port=${tomcat.port}
     406gsdl.path=${gsdl.path} (this is the location of Greenstone 2 if you have it)
     407proxy.host=${proxy.host}
     408proxy.port=${proxy.port}
    404409If these are not acceptable, please change them and rerun this target. Continue [y/n]?" />
    405410    </input>
     
    425430    <available file="${basedir}/comms/jakarta/tomcat" property="tomcat.present"/>
    426431    <available file="${basedir}/gli" property="gli.present"/>
    427     <available file="${basedir}/gs2build" property="gs2build.present"/>
     432    <available file="${basedir}/gs2building" property="gs2build.present"/>
    428433    <available file="${basedir}/comms/soap/axis" property="axis.present"/>
    429434    <available file="${basedir}/comms/jakarta/tomcat/webapps/axis" property="axis.installed"/>
     
    437442    </condition>
    438443   
    439     <echo>tomcat.port:${tomcat.port}, gli.present:${gli.present} gsdlislocal=${gsdl2.islocal} gs2build.present=${gs2build.present} gsdl.path = ${gsdl.path}</echo>
     444      <echo>tomcat.port:${tomcat.port}, gli.present:${gli.present} gsdlislocal=${gsdl2.islocal} gs2build.present=${gs2build.present} gsdl.path = ${gsdl.path}</echo>
    440445    <condition property="proxy.present">
    441446      <not>
     
    457462 
    458463  <!-- this is all the do-once things -->
    459   <target name="preparation" depends="init,update-gsdl3,prepare-mgpp,prepare-gs2building,prepare-tomcat,prepare-axis,unpack-collections">
     464  <target name="prepare" depends="init,update-gsdl3,prepare-mgpp,prepare-gs2building,prepare-tomcat,prepare-axis,unpack-collections">
    460465  </target>
    461466 
    462467  <target name="update-gsdl3">
    463468    <cvs command="update -dP"/>
    464   </target>
     469    </target>
    465470
    466471  <!-- this is config stuff, that can be done more than once - should be rerun is the build.properties file changes -->
    467   <target name="configuration" depends="init,configure-tomcat,configure-files"/>
     472    <target name="configure" depends="init,configure-tomcat,configure-files,configure-packages,configure-gs2building"/>
    468473 
    469474  <target name="configure-files" depends="init">
     
    478483  </target>
    479484
    480   <target name="gsdl3-install" depends="accept-properties,init,preparation,configuration,all" description="setup the gsdl3 stuff to start with">
     485  <target name="gsdl3-install" depends="accept-properties,init,prepare,configure,compile" description="setup the gsdl3 stuff to start with">
    481486  </target>
    482487
     
    498503  </target>
    499504
     505   
    500506  <target name="update-cvs" description="update all the sources">
    501507    <cvs command="update -dP"/>
     
    507513  <!-- ================== targets to handle gs2 building stuff ===============-->
    508514
    509   <!-- used on install -->
    510   <target name="get-gs2build" if="getgsdl2" >
    511     <echo>getting gs2 stuff</echo>
    512     <!---->
    513     <antcall target="compile-gs2build"/>
    514     </target>
    515 
    516 
    517   <target name="update-gs2build" description="Use this to update your Greenstone 2 building stuff - only use if you specified that you didn't have greenstone 2 installed. Will do a cvs update on the gli and gs2build subdirectories, and thenmake clean and make.">
     515
     516  <target name="update-gs2building" description="Use this to update your Greenstone 2 building stuff - only use if you specified that you didn't have greenstone 2 installed. Will do a cvs update on the gli and gs2build subdirectories, and thenmake clean and make.">
    518517    <!-- gli -->
    519518    <cvs command="update -dP" dest="${basedir}/gli"/>
    520519    <!-- gs2build -->
    521520    <!-- Note: can't do a -d update here cos it will get all of gsdl-->
    522     <cvs command="update -P" dest="${basedir}/gs2build"/>
     521    <cvs command="update -P" dest="${gs2build.home}"/>
    523522    <antcall target="compile-gs2build"/>
     523  </target>
     524   
     525  <target name="configure-gs2building">
     526    <exec executable="${gs2build.home}/configure" os="${os.linux}"
     527      dir="${gs2build.home}">
     528      <arg value="--prefix=${gs2build.home}"/>
     529    </exec>
    524530  </target>
    525531 
     
    538544      resolveExecutable="true"/>
    539545    <!-- gs2build -->
    540     <!--linux: configure, make clean, make, make install-->
    541     <property name="gs2build.home" value="${basedir}/gs2build"/>
    542     <exec executable="${gs2build.home}/configure" os="${os.linux}"
    543       dir="${gs2build.home}">
    544       <arg value="--prefix=${gs2build.home}"/>
    545     </exec>
     546    <!--linux: make clean, make, make install -->
    546547    <exec executable="make" os="${os.linux}" dir="${gs2build.home}">
    547548      <arg value="clean"/>
     
    606607    </move>
    607608    <!-- install the webapp into tomcat -->
    608     <copy todir="${tomcat.home}/webapps/axis">
     609    <copy todir="${basedir}/comms/jakarta/tomcat/webapps/axis">
    609610      <fileset dir="${basedir}/comms/soap/axis/webapps/axis"/>
    610611    </copy>
     
    618619  <target name="prepare-gs2build" depends="init" if="gsdl2.islocal" unless="gs2build.present">
    619620    <echo>checking out gs2build</echo>
    620     <cvs command="co -P" package="gs2build"/>
    621     <property name="gs2build.home" value="${basedir}/gs2build"/>
     621    <cvs command="co -P -d gs2building" package="gs2build"/>
    622622
    623623    <!-- rename the .gs2build files -->
Note: See TracChangeset for help on using the changeset viewer.