root/release-kits/wirk3/ant-scripts/compile.xml @ 17268

Revision 17268, 3.2 KB (checked in by oranfry, 11 years ago)

compile search4j in release process and started standardising java installtion

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="set-version-number-property" />
7        <ant target="prepare-windows" dir="greenstone3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false">
8            <property name="app.version" value="${version}"/>
9            <property name="branch.path" value="${branch.path}"/>
10            <property name="branch.revision" value="${branch.revision}"/>
11        </ant>
12        <ant target="build-windows" dir="greenstone3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false">
13            <property name="app.version" value="${version}"/>
14            <property name="branch.path" value="${branch.path}"/>
15            <property name="branch.revision" value="${branch.revision}"/>
16        </ant>
17        <antcall target="compile-uninstaller" /> <!-- from rk3-targets -->
18        <antcall target="prepare-documentation" />
19    </target>
20
21    <target name="checkout-greenstone3">
22        <svn>
23            <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="greenstone3" revision="${branch.revision}"/>
24        </svn>
25    </target>
26
27    <target name="set-version-number-property">
28        <rsr file="greenstone3/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" />
29    </target>
30
31    <target name="tweak-configure-scripts">
32        <antcall target="mgpp-add-static" />
33        <antcall target="mg-add-static" />
34        <antcall target="gs2buildextra-add-static" />
35    </target>
36
37    <target name="prepare-documentation">
38        <mkdir dir="greenstone3/gsdl-manuals"/>
39        <svn>
40            <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="greenstone3/gsdl-manuals/manuals" revision="${branch.revision}"/>
41            <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="greenstone3/gsdl-manuals/shared" revision="${branch.revision}"/>
42        </svn>
43        <javac srcdir="greenstone3/gsdl-manuals/shared" destdir="greenstone3/gsdl-manuals/shared" debug="on"><include name="*.java"/></javac>
44        <unzip src="greenstone3/gsdl-manuals/shared/fop.zip" dest="greenstone3/gsdl-manuals/shared"/>
45
46        <echo>Define Classpath</echo>
47        <path id="documentation.compile.classpath">
48            <fileset dir="greenstone3/gsdl-manuals">
49                <include name="**/*.jar"/>
50            </fileset>
51            <pathelement path="greenstone3/gsdl-manuals/shared"/>
52            <pathelement path="greenstone3/gsdl-manuals/manuals"/>
53            <pathelement path="greenstone3/gli/classes"/>
54        </path>
55                   
56        <echo>Apply XSLT</echo>
57        <java classname="org.apache.xalan.xslt.Process" classpathref="documentation.compile.classpath" fork="true">
58            <jvmarg value="-DGSDLHOME=${basedir}/greenstone" />
59            <arg value="-IN"/><arg file="greenstone3/gli/help/en/help.xml" />
60            <arg value="-XSL"/><arg file="greenstone3/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" />
61            <arg value="-OUT"/><arg file="greenstone3/gsdl-manuals/manuals/xml-source/en/help-en.xml" />
62        </java>
63                   
64        <echo>Run generate-pdf.bat</echo>
65        <exec dir="${basedir}\greenstone3/gsdl-manuals/manuals" executable="cmd">
66            <arg value="/C" />
67            <arg file="${basedir}/greenstone3/gsdl-manuals/manuals/generate-pdf.bat" />
68            <arg value="u" />
69            <arg value="en" />
70        </exec>
71    </target>
72
73</project>
Note: See TracBrowser for help on using the browser.