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

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

lots of work on wirk3

File size: 3.9 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" revision="${branch.revision}"/>
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 <property name="app.version" value="${version}"/>
49 <property name="branch.path" value="${branch.path}"/>
50 <property name="branch.revision" value="${branch.revision}"/>
51 </ant>
52
53 </if>
54 </target>
55 <target name="tweak-configure-scripts">
56 <addressedcall target="mgpp-add-static" />
57 <addressedcall target="mg-add-static" />
58 <addressedcall target="gs2buildextra-add-static" />
59 </target>
60
61 <target name="dist-build-windows">
62 <if><bool><istrue value="${execute}"/></bool>
63 <ant dir="greenstone3" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" target="build-windows" inheritAll="false">
64 <property name="app.version" value="${version}"/>
65 <property name="branch.path" value="${branch.path}"/>
66 <property name="branch.revision" value="${branch.revision}"/>
67 </ant>
68 </if>
69 </target>
70
71 <target name="prepare-documentation">
72 <if><bool><istrue value="${execute}"/></bool>
73
74 <mkdir dir="greenstone3/gsdl-manuals"/>
75 <svn>
76 <checkout url="${svn.root}/documentation/${branch.path}/manuals" destPath="greenstone3/gsdl-manuals/manuals" revision="${branch.revision}"/>
77 <checkout url="${svn.root}/documentation/${branch.path}/shared" destPath="greenstone3/gsdl-manuals/shared" revision="${branch.revision}"/>
78 </svn>
79 <javac srcdir="greenstone3/gsdl-manuals/shared" destdir="greenstone3/gsdl-manuals/shared" debug="on"><include name="*.java"/></javac>
80 <unzip src="greenstone3/gsdl-manuals/shared/fop.zip" dest="greenstone3/gsdl-manuals/shared"/>
81
82 <echo>Define Classpath</echo>
83 <path id="documentation.compile.classpath">
84 <fileset dir="greenstone3/gsdl-manuals">
85 <include name="**/*.jar"/>
86 </fileset>
87 <pathelement path="greenstone3/gsdl-manuals/shared"/>
88 <pathelement path="greenstone3/gsdl-manuals/manuals"/>
89 <pathelement path="greenstone3/gli/classes"/>
90 </path>
91
92 <echo>Apply XSLT</echo>
93 <java classname="org.apache.xalan.xslt.Process" classpathref="documentation.compile.classpath" fork="true">
94 <jvmarg value="-DGSDLHOME=${basedir}/greenstone" />
95 <arg value="-IN"/><arg file="greenstone3/gli/help/en/help.xml" />
96 <arg value="-XSL"/><arg file="greenstone3/gsdl-manuals/manuals/processing/gen-gli-help-to-manual-chapter.xsl" />
97 <arg value="-OUT"/><arg file="greenstone3/gsdl-manuals/manuals/xml-source/en/help-en.xml" />
98
99 </java>
100
101 <echo>Run generate-pdf.bat</echo>
102 <exec dir="${basedir}\greenstone3/gsdl-manuals/manuals" executable="cmd">
103 <arg value="/C" />
104 <arg file="${basedir}/greenstone3/gsdl-manuals/manuals/generate-pdf.bat" />
105 <arg value="u" />
106 <arg value="en" />
107 </exec>
108
109 </if>
110 </target>
111
112
113
114</project>
Note: See TracBrowser for help on using the repository browser.