forked from xmlrocks/dita-ot-pdf-css-page
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
61 lines (51 loc) · 2.09 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<project name="dita-ot-pdf-css-page">
<description>Buildfile for Travis-CI.</description>
<property file="build.properties"/>
<target name="deps" depends="prepare, dita-ot, saxon, xmlresolver, xspec"/>
<target name="prepare">
<mkdir dir="${build.dir}"/>
</target>
<target name="dita-ot">
<get src="${dita-ot.src}" dest="${build.dir}"/>
<untar dest="${build.dir}" src="${build.dir}/${dita-ot.tar.gz}" compression="gzip"/>
<delete file="${build.dir}/${dita-ot.tar.gz}"/>
</target>
<target name="integrate-plugin">
<copy todir="${dita-ot.dir}/plugins/rocks.xml.pdf.css.page">
<fileset dir="rocks.xml.pdf.css.page"/>
</copy>
<chmod file="${dita-ot.executable}" perm="+x"/>
<exec executable="${dita-ot.executable}">
<arg line="-install"/>
</exec>
</target>
<target name="saxon">
<get src="${saxon.src}" dest="${build.dir}"/>
</target>
<target name="xmlresolver">
<get src="${xmlresolver.src}" dest="${build.dir}"/>
<unzip src="${build.dir}/resolver-eps.zip" dest="${build.dir}">
<patternset>
<include name="**/*.jar"/>
</patternset>
</unzip>
<copy file="${build.dir}/build/${xmlresolver.name}" todir="${build.dir}"/>
<delete file="${build.dir}/resolver-eps.zip"/>
<delete dir="${build.dir}/build"/>
</target>
<target name="xspec">
<get src="${xspec.src}" dest="${build.dir}"/>
<unzip src="${xspec.zip}" dest="${build.dir}"/>
<delete file="${xspec.zip}"/>
</target>
<target name="test" depends="integrate-plugin">
<ant antfile="${xspec.dir}/build.xml" inheritall="false" usenativebasedir="false">
<property name="xspec.xml" location="test/suite.xspec"/>
<property name="catalog.xml" location="${dita-ot.dir}/catalog-dita.xml"/>
<propertyset>
<propertyref name="saxon.jar"/>
<propertyref name="xmlresolver.jar"/>
</propertyset>
</ant>
</target>
</project>