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

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

changed the way perl gets inserted

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