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