source: release-kits/wirk3/ant-scripts/compile.xml@ 19463

Last change on this file since 19463 was 19406, checked in by oranfry, 15 years ago

pass on the value of install.flax to the compiled greenstone3

File size: 3.5 KB
RevLine 
[15023]1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk3-compile" default="compile">
3
4 <target name="compile">
[16748]5 <antcall target="checkout-greenstone3" />
[19406]6 <antcall target="generate-build-properties"/>
7
[17898]8 <antcall target="greenstone3-set-version-numbers"><param name="greenstone3basedir" value="${basedir}/compiled" /></antcall>
9 <ant target="prepare-windows" dir="compiled" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false">
[16748]10 <property name="app.version" value="${version}"/>
11 <property name="branch.path" value="${branch.path}"/>
12 <property name="branch.revision" value="${branch.revision}"/>
13 </ant>
[19013]14 <antcall target="insert-windows-perl"><param name="gsdl.basedir" value="compiled/gs2build"/></antcall>
[17898]15 <ant target="build-windows" dir="compiled" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false">
[16748]16 <property name="app.version" value="${version}"/>
17 <property name="branch.path" value="${branch.path}"/>
18 <property name="branch.revision" value="${branch.revision}"/>
19 </ant>
[17268]20 <antcall target="compile-uninstaller" /> <!-- from rk3-targets -->
[16748]21 <antcall target="prepare-documentation" />
[15023]22 </target>
23
24 <target name="checkout-greenstone3">
[16748]25 <svn>
[17898]26 <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="compiled" revision="${branch.revision}"/>
[16748]27 </svn>
[15023]28 </target>
29
[19406]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
[15023]37 <target name="tweak-configure-scripts">
[16748]38 <antcall target="mgpp-add-static" />
39 <antcall target="mg-add-static" />
40 <antcall target="gs2buildextra-add-static" />
[15023]41 </target>
42
43 <target name="prepare-documentation">
[17898]44 <mkdir dir="compiled/gsdl-manuals"/>
[16748]45 <svn>
[17898]46 <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="compiled/gsdl-manuals/manuals" revision="${branch.revision}"/>
47 <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="compiled/gsdl-manuals/shared" revision="${branch.revision}"/>
[16748]48 </svn>
[17898]49 <javac srcdir="compiled/gsdl-manuals/shared" destdir="compiled/gsdl-manuals/shared" debug="on"><include name="*.java"/></javac>
50 <unzip src="compiled/gsdl-manuals/shared/fop.zip" dest="compiled/gsdl-manuals/shared"/>
[15023]51
[16748]52 <echo>Define Classpath</echo>
53 <path id="documentation.compile.classpath">
[17898]54 <fileset dir="compiled/gsdl-manuals">
[16748]55 <include name="**/*.jar"/>
56 </fileset>
[17898]57 <pathelement path="compiled/gsdl-manuals/shared"/>
58 <pathelement path="compiled/gsdl-manuals/manuals"/>
59 <pathelement path="compiled/gli/classes"/>
[16748]60 </path>
61
62 <echo>Apply XSLT</echo>
63 <java classname="org.apache.xalan.xslt.Process" classpathref="documentation.compile.classpath" fork="true">
64 <jvmarg value="-DGSDLHOME=${basedir}/greenstone" />
[17898]65 <arg value="-IN"/><arg file="compiled/gli/help/en/help.xml" />
66 <arg value="-XSL"/><arg file="compiled/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" />
67 <arg value="-OUT"/><arg file="compiled/gsdl-manuals/manuals/xml-source/en/help-en.xml" />
[16748]68 </java>
69
70 <echo>Run generate-pdf.bat</echo>
[17898]71 <exec dir="${basedir}\compiled/gsdl-manuals/manuals" executable="cmd">
[16748]72 <arg value="/C" />
[17898]73 <arg file="${basedir}/compiled/gsdl-manuals/manuals/generate-pdf.bat" />
[16748]74 <arg value="u" />
75 <arg value="en" />
76 </exec>
[15023]77 </target>
[19406]78
[16748]79</project>
Note: See TracBrowser for help on using the repository browser.