Changeset 13378


Ignore:
Timestamp:
2006-11-29T16:58:47+13:00 (17 years ago)
Author:
kjdon
Message:

some targets in here now used in final distribution build.xml file (imported via xslt)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/dist-resources/dist-build.xml

    r13373 r13378  
    185185    </move>
    186186
     187    <!-- generate modified build.xml file -->
     188    <antcall target="run-xslt-binary"/>
    187189
    188190    <!-- clean up -->
    189     <xslt in="${basedir}/build.xml" out="${basedir}/dist-build.xml" style="${basedir}/dist-resources/convert-build-xml.xsl"/>
    190191    <delete dir="${basedir}/build"/>
    191192    <delete dir="${basedir}/lib/jni"/>
     
    214215    <!-- delete old axis dir -->
    215216    <delete dir="${packages.home}/axis"/>
     217    <mkdir dir="${web.home}/applet"/>
     218    <mkdir dir="${web.home}/logs"/>
     219
    216220    <!-- download the mac XML parser just in case: it will only be unpacked if on a mac  -->
    217221    <get src="http://www.greenstone.org/gs3files/XML-Parser.tar.gz"
    218222      dest="${gs2build.home}/perllib/cpan/XML-Parser.tar.gz"
    219223      usetimestamp="true"/>
     224
     225    <!-- generate modified build.xml file -->
     226    <antcall target="run-xslt-source"/>
     227    <!--<delete dir="${basedir}/dist-resources"/>-->
     228
     229  </target>
     230
     231  <target name="run-xslt-source" depends="init">
    220232    <xslt in="${basedir}/build.xml" out="${basedir}/dist-build.xml" style="${basedir}/dist-resources/convert-build-xml-source.xsl"/>
    221     <!--<delete dir="${basedir}/dist-resources"/>-->
    222    
    223   </target>
    224 
    225   <!-- this target must be run once source dist unpacked -->
    226   <target name="prepare-for-source-dist" depends="init">
    227     <antcall target="unzip-windows-packages"/>
    228     <!-- install tomcat compat package if necessary -->
    229     <condition property="need.tomcat.compat">
    230       <equals arg1="1.4" arg2="${ant.java.version}"/>
    231     </condition>
    232     <antcall target="install-tomcat-compat"/>
    233     <condition property="need.xml.jars">
    234       <equals arg1="1.5" arg2="${ant.java.version}"/>
    235     </condition>
    236     <antcall target="rename-xml-jars"/>
    237    
    238     <!-- set gsdlhome in setup.bat -->
    239     <antcall target="gs2build-edit-setup-bat"/>
    240     <antcall target="prepare-web"/>
    241   </target>
    242 
     233  </target>
     234 
     235  <target name="run-xslt-binary" depends="init">
     236    <xslt in="${basedir}/build.xml" out="${basedir}/dist-build.xml" style="${basedir}/dist-resources/convert-build-xml.xsl"/>
     237  </target>
     238 
    243239  <target name="rename-gs2build-files-dist" depends="init,rename-gs2build-files-unix">
    244240    <copy file="${gs2build-extra.home}/lib.win32.mak" tofile="${gs2build.home}/lib/win32.mak"/>
     
    313309  </target>
    314310
     311  <!-- new targets to go in distribution build.xml files -->
     312
     313  <!-- new usage target for binary release -->
     314  <target name="usage-for-binary-dist" description="Print a help message">
     315    <echo message="  Execute 'ant -projecthelp' for a list of targets."/>
     316    <echo message="  Execute 'ant -help' for Ant help."/>
     317  </target>
     318   
     319
     320  <!-- new install target for source distribution -->
     321  <target name="install-for-source-dist" depends="init" description="install the source distribution. Includes configuring and compiling">
     322    <antcall target="unzip-windows-packages"/>
     323    <!-- install tomcat compat package if necessary -->
     324    <condition property="need.tomcat.compat">
     325      <equals arg1="1.4" arg2="${ant.java.version}"/>
     326    </condition>
     327    <antcall target="install-tomcat-compat"/>
     328    <condition property="need.xml.jars">
     329      <equals arg1="1.5" arg2="${ant.java.version}"/>
     330    </condition>
     331    <antcall target="rename-xml-jars"/>
     332    <antcall target="install-macos-extra"/>
     333    <!-- set gsdlhome in setup.bat -->
     334    <antcall target="gs2build-edit-setup-bat"/>
     335    <antcall target="configure"/>
     336    <antcall target="configure-c++"/>
     337    <antcall target="compile"/>
     338  </target>
     339
    315340</project>
    316341 
Note: See TracChangeset for help on using the changeset viewer.