Changeset 19661

Show
Ignore:
Timestamp:
29.05.2009 11:50:07 (10 years ago)
Author:
oranfry
Message:

added code to help setup flax in a release

Location:
release-kits/wirk3/ant-scripts
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • release-kits/wirk3/ant-scripts/compile.xml

    r19475 r19661  
    44    <target name="compile"> 
    55        <antcall target="checkout-greenstone3" /> 
    6         <antcall target="generate-build-properties"/> 
     6        <antcall target="generate-build-properties"><param name="greenstone3.basedir" value="compiled"/></antcall> 
    77         
    88        <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/compiled" /></antcall> 
     
    2828    </target> 
    2929 
    30     <target name="generate-build-properties"> 
    31         <copy file="compiled/build.properties.in" tofile="compiled/build.properties"/> 
    32         <if><bool><istrue value="${install.flax}"/></bool> 
    33             <rsr file="compiled/build.properties" pattern="^#install.flax\s*[=:].*" replacement="install.flax=true"/> 
    34         </if> 
    35     </target> 
    36  
    3730    <target name="tweak-configure-scripts"> 
    3831        <antcall target="mgpp-add-static" /> 
     
    4740            <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="compiled/gsdl-manuals/shared" revision="${branch.revision}"/> 
    4841        </svn> 
     42        <javac srcdir="compiled/gsdl-manuals/shared" destdir="compiled/gsdl-manuals/shared" debug="on"><include name="*.java"/></javac> 
     43        <unzip src="compiled/gsdl-manuals/shared/fop.zip" dest="compiled/gsdl-manuals/shared"/> 
    4944 
    5045        <echo>Define Classpath</echo> 
     
    5752            <pathelement path="compiled/gli/classes"/> 
    5853        </path> 
    59  
    60         <javac classpathref="documentation.compile.classpath" srcdir="compiled/gsdl-manuals/shared" destdir="compiled/gsdl-manuals/shared" debug="on"><include name="*.java"/></javac> 
    61         <unzip src="compiled/gsdl-manuals/shared/fop.zip" dest="compiled/gsdl-manuals/shared"/> 
    6254                     
    6355        <echo>Apply XSLT</echo> 
  • release-kits/wirk3/ant-scripts/create-distribution.xml

    r19475 r19661  
    66        <!-- create distribution --> 
    77        <antcall target="export-greenstone3-gli" /> 
     8        <antcall target="generate-build-properties"><param name="greenstone3.basedir" value="distributions/web"/></antcall> 
    89        <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/distributions/web" /></antcall> 
    910        <antcall target="gli-set-version-numbers"><param name="glibasedir" value="${basedir}/distributions/web/gli" /></antcall> 
    1011        <antcall target="insert-user-manual"/> 
    11         <antcall target="insert-uninstaller"><param name="script-format" value="bat"/></antcall> <!-- from init --> 
    12         <antcall target="insert-uninstaller-jar"/> <!-- from rk3-targets --> 
     12        <antcall target="insert-uninstaller"><param name="script-format" value="bat"/></antcall> <!-- from rk3-targets --> 
    1313 
    14         <ant target="configure-java-version" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" inheritAll="false"/> 
    15              
    1614        <ant target="create-distribution-1" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" dir="distributions/web" inheritAll="false"> 
    1715            <property name="app.version" value="${version}"/> 
  • release-kits/wirk3/ant-scripts/operations-on-gs3home.xml

    r19475 r19661  
    1010 
    1111<project name="opeations-on-gs3home" default="usage"> 
    12  
    13     <path id="runtime.classpath"> 
    14         <fileset dir="${web.lib}" includes="**/*.jar"/> 
    15     </path> 
    16  
    1712   
    1813    <!-- include standard build file --> 
     
    3227        <antcall target="unzip-windows-packages"/> 
    3328        <antcall target="checkout-winbin"/> 
     29        <antcall target="prepare-flax"/> 
    3430        <!--<antcall target="get-perl-for-windows"/>--> 
    3531    </target> 
     
    5349        <antcall target="prepare-tomcat"/> 
    5450        <antcall target="prepare-axis"/> 
     51        <antcall target="prepare-flax"/> 
    5552 
    5653         
     
    9390 
    9491        <!-- put gs2build source code in a tidy place --> 
    95         <if><bool><available file="${gs2build.home}/source/src"/></bool> 
    96             <move todir="${gs2build.home}/source/src" failonerror="false"><fileset dir="${gs2build.home}/src" defaultexcludes="no"/></move> 
    97             <move todir="${gs2build.home}/source/lib" failonerror="false"><fileset dir="${gs2build.home}/lib" defaultexcludes="no"/></move> 
    98             <move todir="${gs2build.home}/source/packages" failonerror="false"><fileset dir="${gs2build.home}/packages" defaultexcludes="no"/></move> 
    99             <move todir="${gs2build.home}/source/indexers" failonerror="false"><fileset dir="${gs2build.home}/indexers" defaultexcludes="no"/></move> 
    100             <move file="${gs2build.home}/win32.mak" tofile="${gs2build.home}/source/win32.mak"/> 
    101             <!--<move file="${gs2build.home}/setup.bat" tofile="${gs2build.home}/source/setup.bat"/>--> 
    102             <!--<move file="${gs2build.home}/win32cfg.h" tofile="${gs2build.home}/source/win32cfg.h"/>--> 
    103         </if> 
    104          
     92        <move todir="${gs2build.home}/source/src" failonerror="false"><fileset dir="${gs2build.home}/src" defaultexcludes="no"/></move> 
     93        <move todir="${gs2build.home}/source/lib" failonerror="false"><fileset dir="${gs2build.home}/lib" defaultexcludes="no"/></move> 
     94        <move todir="${gs2build.home}/source/packages" failonerror="false"><fileset dir="${gs2build.home}/packages" defaultexcludes="no"/></move> 
     95        <move todir="${gs2build.home}/source/indexers" failonerror="false"><fileset dir="${gs2build.home}/indexers" defaultexcludes="no"/></move> 
     96        <move file="${gs2build.home}/win32.mak" tofile="${gs2build.home}/source/win32.mak"/> 
     97        <!--<move file="${gs2build.home}/setup.bat" tofile="${gs2build.home}/source/setup.bat"/>--> 
     98        <!--<move file="${gs2build.home}/win32cfg.h" tofile="${gs2build.home}/source/win32cfg.h"/>--> 
     99 
    105100        <!-- clean up --> 
    106101        <delete includeemptydirs="true"> 
     
    146141 
    147142    <target name="run-xslt-source" depends="init"> 
    148         <xslt classpathref="runtime.classpath" in="${basedir}/build.xml" out="${basedir}/dist-build.xml" style="${basedir}/dist-resources/convert-build-xml-source.xsl"/> 
     143        <xslt in="${basedir}/build.xml" out="${basedir}/dist-build.xml" style="${basedir}/dist-resources/convert-build-xml-source.xsl"/> 
    149144    </target> 
    150145   
    151146    <target name="run-xslt-binary" depends="init"> 
    152         <xslt classpathref="runtime.classpath" in="${basedir}/build.xml" out="${basedir}/modified-build.xml" style="${wirk3.home}/greenstone3/xsl/convert-build-xml.xsl"/> 
     147        <xslt in="${basedir}/build.xml" out="${basedir}/modified-build.xml" style="${wirk3.home}/greenstone3/xsl/convert-build-xml.xsl"/> 
    153148    </target> 
    154149