[15023] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
| 2 | <project name="wirk3-compile" default="compile">
|
---|
| 3 |
|
---|
| 4 | <target name="compile">
|
---|
[16748] | 5 | <antcall target="checkout-greenstone3" />
|
---|
[17898] | 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">
|
---|
[16748] | 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>
|
---|
[19013] | 12 | <antcall target="insert-windows-perl"><param name="gsdl.basedir" value="compiled/gs2build"/></antcall>
|
---|
[17898] | 13 | <ant target="build-windows" dir="compiled" antfile="${wirk3.home}/ant-scripts/operations-on-gs3home.xml" inheritAll="false">
|
---|
[16748] | 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>
|
---|
[17268] | 18 | <antcall target="compile-uninstaller" /> <!-- from rk3-targets -->
|
---|
[16748] | 19 | <antcall target="prepare-documentation" />
|
---|
[15023] | 20 | </target>
|
---|
| 21 |
|
---|
| 22 | <target name="checkout-greenstone3">
|
---|
[16748] | 23 | <svn>
|
---|
[17898] | 24 | <checkout url="${svn.root}/greenstone3/${branch.path}" destPath="compiled" revision="${branch.revision}"/>
|
---|
[16748] | 25 | </svn>
|
---|
[15023] | 26 | </target>
|
---|
| 27 |
|
---|
| 28 | <target name="tweak-configure-scripts">
|
---|
[16748] | 29 | <antcall target="mgpp-add-static" />
|
---|
| 30 | <antcall target="mg-add-static" />
|
---|
| 31 | <antcall target="gs2buildextra-add-static" />
|
---|
[15023] | 32 | </target>
|
---|
| 33 |
|
---|
| 34 | <target name="prepare-documentation">
|
---|
[17898] | 35 | <mkdir dir="compiled/gsdl-manuals"/>
|
---|
[16748] | 36 | <svn>
|
---|
[17898] | 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}"/>
|
---|
[16748] | 39 | </svn>
|
---|
[17898] | 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"/>
|
---|
[15023] | 42 |
|
---|
[16748] | 43 | <echo>Define Classpath</echo>
|
---|
| 44 | <path id="documentation.compile.classpath">
|
---|
[17898] | 45 | <fileset dir="compiled/gsdl-manuals">
|
---|
[16748] | 46 | <include name="**/*.jar"/>
|
---|
| 47 | </fileset>
|
---|
[17898] | 48 | <pathelement path="compiled/gsdl-manuals/shared"/>
|
---|
| 49 | <pathelement path="compiled/gsdl-manuals/manuals"/>
|
---|
| 50 | <pathelement path="compiled/gli/classes"/>
|
---|
[16748] | 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" />
|
---|
[17898] | 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" />
|
---|
[16748] | 59 | </java>
|
---|
| 60 |
|
---|
| 61 | <echo>Run generate-pdf.bat</echo>
|
---|
[17898] | 62 | <exec dir="${basedir}\compiled/gsdl-manuals/manuals" executable="cmd">
|
---|
[16748] | 63 | <arg value="/C" />
|
---|
[17898] | 64 | <arg file="${basedir}/compiled/gsdl-manuals/manuals/generate-pdf.bat" />
|
---|
[16748] | 65 | <arg value="u" />
|
---|
| 66 | <arg value="en" />
|
---|
| 67 | </exec>
|
---|
[15023] | 68 | </target>
|
---|
| 69 |
|
---|
[16748] | 70 | </project>
|
---|