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

Last change on this file since 19406 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
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<project name="wirk3-compile" default="compile">
3
4 <target name="compile">
5 <antcall target="checkout-greenstone3" />
6 <antcall target="generate-build-properties"/>
7
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">
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>
14 <antcall target="insert-windows-perl"><param name="gsdl.basedir" value="compiled/gs2build"/></antcall>
15 <ant target="build-windows" dir="compiled" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false">
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>
20 <antcall target="compile-uninstaller" /> <!-- from rk3-targets -->
21 <antcall target="prepare-documentation" />
22 </target>
23
24 <target name="checkout-greenstone3">
25 <svn>
26 <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="compiled" revision="${branch.revision}"/>
27 </svn>
28 </target>
29
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
37 <target name="tweak-configure-scripts">
38 <antcall target="mgpp-add-static" />
39 <antcall target="mg-add-static" />
40 <antcall target="gs2buildextra-add-static" />
41 </target>
42
43 <target name="prepare-documentation">
44 <mkdir dir="compiled/gsdl-manuals"/>
45 <svn>
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}"/>
48 </svn>
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"/>
51
52 <echo>Define Classpath</echo>
53 <path id="documentation.compile.classpath">
54 <fileset dir="compiled/gsdl-manuals">
55 <include name="**/*.jar"/>
56 </fileset>
57 <pathelement path="compiled/gsdl-manuals/shared"/>
58 <pathelement path="compiled/gsdl-manuals/manuals"/>
59 <pathelement path="compiled/gli/classes"/>
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" />
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" />
68 </java>
69
70 <echo>Run generate-pdf.bat</echo>
71 <exec dir="${basedir}\compiled/gsdl-manuals/manuals" executable="cmd">
72 <arg value="/C" />
73 <arg file="${basedir}/compiled/gsdl-manuals/manuals/generate-pdf.bat" />
74 <arg value="u" />
75 <arg value="en" />
76 </exec>
77 </target>
78
79</project>
Note: See TracBrowser for help on using the repository browser.