-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
112 lines (97 loc) · 3.54 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
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
<?xml version="1.0" encoding="ISO-8859-1"?>
<project basedir="." default="jar" name="All">
<target name="init" description="Build-Prozess initialisieren">
<property name="build.dir" value="build" />
<property name="src.dir" value="src" />
<property name="classpath" value="lib/itextpdf-5.5.2.jar;lib/junit-4.11.jar;lib/jaxb-api-2.4.0-b180725.0427.jar;lib/jaxb-runtime-2.4.0-b180725.0644.jar" />
<property name="classes.dir" value="${build.dir}/bin" />
<property name="javadoc.dir" value="doc/api" />
<property name="deploy" value="deploy" />
<property environment="env"/>
<property file="lib.props"/>
<property environment="env"/>
<property name="xjc" value="${env.JAVA_HOME}/bin/xjc.exe"/>
<property name="jar.file" value="${build.dir}/obantoo-bin-${version}.jar" />
<property name="zip.file" value="${deploy}/obantoo-${version}.zip" />
</target>
<target name="compile" depends="init" description="Compilieren">
<mkdir dir="${classes.dir}" />
<javac source="1.8"
classpath="${classpath}"
target="1.8"
debug="true"
debuglevel="lines,vars,source"
deprecation="true"
destdir="${classes.dir}"
srcdir="${src.dir}"
encoding="ISO-8859-15"
includeJavaRuntime="no"
includeAntRuntime="no">
</javac>
<copy todir="${classes.dir}">
<fileset dir="${src.dir}">
<include name="*.csv"/>
<include name="*.txt"/>
</fileset>
</copy>
</target>
<target name="jar" depends="init,compile" description="Jar-File erzeugen">
<tstamp/>
<jar destfile="${jar.file}">
<manifest>
<attribute name="Built-By" value="Heiner Jostkleigrewe" />
<attribute name="Built-Date" value="${DSTAMP}" />
<attribute name="Implementation-Title" value="obantoo" />
<attribute name="Implementation-Version" value="${version} ${TODAY}"/>
</manifest>
<fileset dir="${classes.dir}" />
</jar>
</target>
<target name="javadoc" depends="jar" description="Javadoc erzeugen">
<mkdirs dir="${javadoc.dir}" />
<javadoc destdir="${javadoc.dir}"
packagenames="*"
access="private"
encoding="ISO-8859-15">
<sourcepath>
<pathelement location="${src.dir}" />
</sourcepath>
</javadoc>
</target>
<target name="deploy" depends="init,clean,jar" description="Auslieferbare ZIP-Datei erzeugen">
<mkdir dir="${deploy}"/>
<copy todir="${build.dir}/src">
<fileset dir="${src.dir}"/>
</copy>
<copy todir="${build.dir}" file="LICENSE"/>
<copy todir="${build.dir}" file="lib.props"/>
<echo message="zip ${zip.file} und ${build.dir}" />
<zip destfile="${zip.file}" >
<fileset dir="${build.dir}" />
</zip>
</target>
<target name="clean" depends="init" description="cleanup">
<echo message="cleanup ${build.dir} und ${deploy}" />
<delete dir="${build.dir}" />
<delete dir="${deploy}"/>
<delete dir="${javadoc.dir}"/>
</target>
<target name="xsd2java001" depends="init" description="Pain.001: Java aus XSD erzeugen">
<exec executable="${xjc}">
<arg value="-d"/>
<arg value="${src.dir}"/>
<arg value="-p"/>
<arg value="de.jost_net.OBanToo.SEPA.Nachricht.pain_001_003_03"/>
<arg value="xsd/pain.001.003.03.xsd"/>
</exec>
</target>
<target name="xsd2java008" depends="init" description="Pain.008: Java aus XSD erzeugen">
<exec executable="${xjc}">
<arg value="-d"/>
<arg value="${src.dir}"/>
<arg value="-p"/>
<arg value="de.jost_net.OBanToo.SEPA.Nachricht.pain_008_002_02"/>
<arg value="xsd/pain.008.002.02.xsd"/>
</exec>
</target>
</project>