-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-nonb.xml
148 lines (129 loc) · 5.15 KB
/
build-nonb.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?xml version="1.0" encoding="UTF-8"?>
<!-- Build file for when you don't have NetBeans.-->
<project name="FOPRunXSLTExt-nonb" default="default" basedir=".">
<description>Builds, tests, and runs the project FOPRunXSLTExt.</description>
<import file="build.xml"/>
<target name="-pre-init">
<property file="properties.local.xml"/>
<property file="properties.xml"/>
<property name="xslt.extensions.version" value="0.1.0" />
<property name="zip.version" value="${xslt.extensions.version}" />
<condition property="prebuilt.lib"
value="${prebuilt.lib.windows}">
<and>
<os family="windows" />
<available file="${prebuilt.lib.windows}"/>
</and>
</condition>
<fail unless="prebuilt.lib"
message="Could not find '$${prebuilt.lib}'" />
<condition property="file.reference.fop.jar"
value="${prebuilt.lib}/fop.jar">
<available file="${prebuilt.lib}/fop.jar"/>
</condition>
<condition property="file.reference.fop.jar"
value="${fop.dir.windows}/build/fop.jar">
<and>
<os family="windows" />
<available file="${fop.dir.windows}/build/fop.jar"/>
</and>
</condition>
<fail unless="file.reference.fop.jar"
message="Could not find 'fop.jar'" />
<condition property="file.reference.saxon9he.jar"
value="${saxon.lib.windows}/saxon9he.jar">
<and>
<os family="windows" />
<available file="${saxon.lib.windows}/saxon9he.jar"/>
</and>
</condition>
<condition property="file.reference.saxon9he.jar"
value="${saxon.lib.unix}/saxon9he.jar">
<and>
<os family="unix" />
<available file="${saxon.lib.unix}/saxon9he.jar"/>
</and>
</condition>
<fail unless="file.reference.saxon9he.jar"
message="Could not find 'saxon9he.jar'" />
<condition property="file.reference.XfoJavaCtl.jar"
value="${ahf.lib.windows}/XfoJavaCtl.jar">
<and>
<os family="windows" />
<available file="${ahf.lib.windows}/XfoJavaCtl.jar"/>
</and>
</condition>
<condition property="file.reference.XfoJavaCtl.jar"
value="${ahf.lib.unix}/XfoJavaCtl.jar">
<and>
<os family="unix" />
<available file="${ahf.lib.unix}/XfoJavaCtl.jar"/>
</and>
</condition>
<fail unless="file.reference.XfoJavaCtl.jar"
message="Could not find 'XfoJavaCtl.jar'" />
<condition property="file.reference.xalan-2.7.0.jar"
value="${fop.dir.windows}/lib/xalan-2.7.0.jar">
<available file="${fop.dir.windows}/lib/xalan-2.7.0.jar"/>
</condition>
<fail unless="file.reference.xalan-2.7.0.jar"
message="Could not find 'xalan-2.7.0.jar'" />
<condition property="file.reference.xmlgraphics-commons.jar"
value="${fop.dir.windows}/lib/xmlgraphics-commons-2.0.1.jar">
<available file="${fop.dir.windows}/lib/xmlgraphics-commons-2.0.1.jar"/>
</condition>
<fail unless="file.reference.xmlgraphics-commons.jar"
message="Could not find 'xmlgraphics-commons.jar'" />
</target>
<target name="-post-init">
<echoproperties/>
</target>
<target name="-post-jar" depends="-pre-init">
<property name="FOPRunXSLTExt.jar"
location="dist/FOPRunXSLTExt.jar"/>
<filterset id="jars">
<filter token="file.reference.fop.jar" value="${file.reference.fop.jar}"/>
<filter token="file.reference.saxon9he.jar" value="${file.reference.saxon9he.jar}"/>
<filter token="file.reference.ahf.jar" value="${file.reference.XfoJavaCtl.jar}"/>
<filter token="FOPRunXSLTExt.jar" value="${FOPRunXSLTExt.jar}"/>
</filterset>
<copy file="examples/runsaxon9he_ahf61.sh.in" tofile="examples/runsaxon9he_ahf61.sh">
<filterset refid="jars"/>
</copy>
<chmod file="examples/runsaxon9he_ahf61.sh" perm="ugo+rx"/>
<copy file="examples/runsaxon9he_fop10.sh.in" tofile="examples/runsaxon9he_fop10.sh">
<filterset refid="jars"/>
</copy>
<chmod file="examples/runsaxon9he_fop10.sh" perm="ugo+rx"/>
<copy file="examples/runxalan_fop10.sh.in" tofile="examples/runxalan_fop10.sh">
<filterset refid="jars"/>
</copy>
<chmod file="examples/runxalan_fop10.sh" perm="ugo+rx"/>
<copy file="examples/runxalan_ahf61.sh.in" tofile="examples/runxalan_ahf61.sh">
<filterset refid="jars"/>
</copy>
<chmod file="examples/runxalan_ahf61.sh" perm="ugo+rx"/>
</target>
<target name="zip" depends="-pre-init">
<zip destfile="XSLTExtensions-${zip.version}.zip">
<zipfileset dir="."
includes="README.md LICENSE.md properties.xml build-xslt-extensions.xml dist/*.jar bin/**"
prefix="XSLTExtensions-${zip.version}" />
</zip>
<zip destfile="XSLTExtensions-doc-${zip.version}.zip">
<zipfileset dir="."
includes="README.md LICENSE.md"
prefix="XSLTExtensions-${zip.version}" />
<zipfileset dir="dist"
includes="javadoc/**"
prefix="XSLTExtensions-doc-${zip.version}" />
</zip>
</target>
<target name="zip.windows" depends="-pre-init">
<zip destfile="XSLTExtensions-windows-${zip.version}.zip">
<zipfileset dir="examples"
includes="runsaxon9he_fop10.bat FOPRunXSLTExt.jar README example*.xml example*.xsl out"
prefix="XSLTExtensions-windows-${zip.version}" />
</zip>
</target>
</project>