-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
37 lines (32 loc) · 1.4 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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="xml-mutate" default="run-xmute-tutorial">
<property name="xmute.jar" value="xml-mutate-1.0-SNAPSHOT.jar" />
<property name="lib.dir" value="${basedir}/target" />
<property name="xmute.tutorial.dir" value="${basedir}/src/test/resources/book" />
<property name="xmute.tutorial.output.dir" value="${basedir}/tutorial" />
<property name="xmute.xml.file" value="${basedir}/doc/example/book-simple.xml" />
<target name="init" description="Initializes ant build and ISO timestamp">
<!-- Create timestamps -->
<tstamp>
<format property="build.date" pattern="yyyy-MM-dd" />
</tstamp>
<echo>Build date: ${build.date}</echo>
<echoproperties />
<!-- Create the build directory structure used by compile -->
<mkdir dir="${xmute.tutorial.output.dir}" />
</target>
<target name="run-xmute-tutorial" depends="init"
description="Test XRechnung Configuration">
<echo>Running XML-Mutate tutorial</echo>
<java jar="${lib.dir}/${xmute.jar}" failonerror="yes" fork="yes"
dir="${basedir}">
<arg value="--schema" />
<arg value="${xmute.tutorial.dir}/book.xsd" />
<arg value="--schematron" />
<arg value="b=${xmute.tutorial.dir}/book.sch" />
<arg value="--target" />
<arg value="${xmute.tutorial.output.dir}" />
<arg value="${xmute.xml.file}" />
</java>
</target>
</project>