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

Last change on this file since 15023 was 15023, checked in by oranfry, 16 years ago

did the bulk of the work on wirk3

File size: 3.5 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2
3<!--
4 ..........................................................
5 September 2007
6 Greenstone3 'release maker' script
7 Oran Fry
8 ..........................................................
9-->
10
11<project name="wirk3-compile" default="compile">
12
13
14 <target name="compile">
15
16 <addressedcall target="checkout-greenstone3" />
17 <addressedcall target="set-version-number-property" />
18 <addressedcall target="dist-prepare-windows" />
19 <addressedcall target="dist-build-windows" />
20 <addressedcall target="prepare-documentation" />
21
22 </target>
23
24
25 <!--
26
27 second level targets
28
29 -->
30
31 <target name="checkout-greenstone3">
32 <if><bool><istrue value="${execute}"/></bool>
33 <svn>
34 <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="greenstone3"/>
35 </svn>
36 </if>
37 </target>
38
39 <target name="set-version-number-property">
40 <if><bool><istrue value="${execute}"/></bool>
41 <rsr file="greenstone3/resources/java/global.properties.in" pattern="(.*)@gsdl3version@(.*)" replacement="$1${version}$2" />
42 </if>
43 </target>
44
45 <target name="dist-prepare-windows">
46 <if><bool><istrue value="${execute}"/></bool>
47 <ant dir="greenstone3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" target="prepare-windows" inheritAll="false"/>
48 </if>
49 </target>
50 <target name="tweak-configure-scripts">
51 <addressedcall target="mgpp-add-static" />
52 <addressedcall target="mg-add-static" />
53 <addressedcall target="gs2buildextra-add-static" />
54 </target>
55
56 <target name="dist-build-windows">
57 <if><bool><istrue value="${execute}"/></bool>
58 <ant dir="greenstone3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" target="build-windows" inheritAll="false"/>
59 </if>
60 </target>
61
62 <target name="prepare-documentation">
63 <if><bool><istrue value="${execute}"/></bool>
64
65 <mkdir dir="greenstone3/gsdl-manuals"/>
66 <svn>
67 <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="greenstone3/gsdl-manuals/manuals"/>
68 <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="greenstone3/gsdl-manuals/shared"/>
69 </svn>
70 <javac srcdir="greenstone3/gsdl-manuals/shared" destdir="greenstone3/gsdl-manuals/shared" debug="on"><include name="*.java"/></javac>
71 <unzip src="greenstone3/gsdl-manuals/shared/fop.zip" dest="greenstone3/gsdl-manuals/shared"/>
72
73 <echo>Define Classpath</echo>
74 <path id="documentation.compile.classpath">
75 <fileset dir="greenstone3/gsdl-manuals">
76 <include name="**/*.jar"/>
77 </fileset>
78 <pathelement path="greenstone3/gsdl-manuals/shared"/>
79 <pathelement path="greenstone3/gsdl-manuals/manuals"/>
80 <pathelement path="greenstone3/gli/classes"/>
81 </path>
82
83 <echo>Apply XSLT</echo>
84 <java classname="org.apache.xalan.xslt.Process" classpathref="documentation.compile.classpath" fork="true">
85 <jvmarg value="-DGSDLHOME=${basedir}/greenstone" />
86 <arg value="-IN"/><arg file="greenstone3/gli/help/en/help.xml" />
87 <arg value="-XSL"/><arg file="greenstone3/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" />
88 <arg value="-OUT"/><arg file="greenstone3/gsdl-manuals/manuals/xml-source/en/help-en.xml" />
89
90 </java>
91
92 <echo>Run generate-pdf.bat</echo>
93 <exec dir="${basedir}\greenstone3/gsdl-manuals/manuals" executable="cmd">
94 <arg value="/C" />
95 <arg file="${basedir}/greenstone3/gsdl-manuals/manuals/generate-pdf.bat" />
96 <arg value="u" />
97 <arg value="en" />
98 </exec>
99
100
101 </if>
102 </target>
103
104
105
106</project>
Note: See TracBrowser for help on using the repository browser.