-
Notifications
You must be signed in to change notification settings - Fork 94
/
build.xml
executable file
·60 lines (52 loc) · 1.47 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
<project name="XSLTJSON" default="examples">
<description>
Simple project to transform arbitrary XML files to JSON format.
</description>
<property name="xsltjson.build" value="output"/>
<property name="xsltjson.lib" value="lib"/>
<property name="xsltjson.config" value="conf"/>
<path id="saxon.classpath">
<fileset dir="${xsltjson.lib}/saxon">
<include name="*.jar"/>
</fileset>
</path>
<path id="xalan.classpath">
<fileset dir="${xsltjson.lib}/xalan">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<mkdir dir="${xsltjson.build}"/>
</target>
<target name="examples" depends="init">
<xslt basedir="input/examples" destdir="${xsltjson.build}/examples" extension=".json"
style="${xsltjson.config}/xml-to-json.xsl">
<classpath>
<path refid="saxon.classpath"/>
</classpath>
</xslt>
</target>
<target name="examples-xalan">
<xslt basedir="input/examples" destdir="${xsltjson.build}/examples" extension=".json"
style="${xsltjson.config}/xml-to-jsonml.xsl">
<classpath>
<path refid="xalan.classpath"/>
</classpath>
</xslt>
</target>
<target name="test" depends="init">
<xslt basedir="input/tests" destdir="${xsltjson.build}/tests" extension=".xml"
style="${xsltjson.config}/test.xsl">
<classpath>
<path refid="saxon.classpath"/>
</classpath>
</xslt>
</target>
<!--
<target name="test-xalan" depends="init">
</target>
-->
<target name="clean">
<delete dir="${xsltjson.build}"/>
</target>
</project>