This repository has been archived by the owner on May 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
/
build.xml
198 lines (175 loc) · 6.86 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
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<?xml version="1.0"?>
<project name="hbci4java" default="compile">
<property name="make" value="/usr/bin/make" />
<property name="src" value="src" />
<property name="classes" value="classes" />
<property name="doc" value="doc" />
<property name="chipcard" value="chipcard" />
<property name="dist" value="dist" />
<path id="cp">
<pathelement location="${classes}" />
</path>
<target name="jaxb" description="generates the JAXB classes for the pain schema files">
<antcall target="sub_jaxb">
<param name="param.package" value="pain_001_001_02" />
<param name="param.schema" value="pain.001.001.02.xsd" />
</antcall>
<antcall target="sub_jaxb">
<param name="param.package" value="pain_001_002_02" />
<param name="param.schema" value="pain.001.002.02.xsd" />
</antcall>
<antcall target="sub_jaxb">
<param name="param.package" value="pain_001_002_03" />
<param name="param.schema" value="pain.001.002.03.xsd" />
</antcall>
<antcall target="sub_jaxb">
<param name="param.package" value="pain_001_003_03" />
<param name="param.schema" value="pain.001.003.03.xsd" />
</antcall>
<antcall target="sub_jaxb">
<param name="param.package" value="pain_001_001_03" />
<param name="param.schema" value="pain.001.001.03.xsd" />
</antcall>
<antcall target="sub_jaxb">
<param name="param.package" value="pain_002_002_02" />
<param name="param.schema" value="pain.002.002.02.xsd" />
</antcall>
<antcall target="sub_jaxb">
<param name="param.package" value="pain_002_003_03" />
<param name="param.schema" value="pain.002.003.03.xsd" />
</antcall>
<antcall target="sub_jaxb">
<param name="param.package" value="pain_002_001_03" />
<param name="param.schema" value="pain.002.001.03.xsd" />
</antcall>
<antcall target="sub_jaxb">
<param name="param.package" value="pain_008_001_01" />
<param name="param.schema" value="pain.008.001.01.xsd" />
</antcall>
<antcall target="sub_jaxb">
<param name="param.package" value="pain_008_002_01" />
<param name="param.schema" value="pain.008.002.01.xsd" />
</antcall>
<antcall target="sub_jaxb">
<param name="param.package" value="pain_008_002_02" />
<param name="param.schema" value="pain.008.002.02.xsd" />
</antcall>
<antcall target="sub_jaxb">
<param name="param.package" value="pain_008_003_02" />
<param name="param.schema" value="pain.008.003.02.xsd" />
</antcall>
<antcall target="sub_jaxb">
<param name="param.package" value="pain_008_001_02" />
<param name="param.schema" value="pain.008.001.02.xsd" />
</antcall>
</target>
<!--
Erzeugt die Klassen fuer das angegebene Schema.
@param param.package der Package-Name
@param param.schema die pain Schema-Datei.
//-->
<target name="sub_jaxb">
<exec executable="xjc" failonerror="true">
<arg line="-extension -d ${src} -p org.kapott.hbci.sepa.jaxb.${param.package} -no-header -npa ${src}/${param.schema}" />
</exec>
</target>
<target name="compile">
<mkdir dir="${classes}" />
<javac srcdir="${src}" source="1.5" target="1.5" destdir="${classes}" debug="on" encoding="ISO-8859-1" deprecation="on" includeAntRuntime="no" />
<copy todir="${classes}">
<fileset dir="${src}">
<include name="hbci-*.xml" />
<include name="pain.*.xsd" />
<include name="challengedata.xml" />
<include name="blz.properties" />
<include name="*messages*.properties" />
</fileset>
</copy>
<javah class="org.kapott.hbci.passport.HBCIPassportDDV" outputFile="${chipcard}/src/include/frontend.h" classpath="${classes}" />
<exec executable="${make}" os="Linux">
<arg line="-C ${chipcard}" />
</exec>
</target>
<target name="package" depends="compile">
<mkdir dir="${dist}/jar" />
<jar destfile="${dist}/jar/hbci4java.jar" basedir="${classes}" compress="true">
<exclude name="org/kapott/hbci/tests" />
<exclude name="org/kapott/hbci/tests/**/*" />
</jar>
</target>
<fileset id="docfiles" dir="${src}/org/kapott/hbci">
<include name="structures/Konto.java" />
<include name="structures/KontoIntl.java" />
<include name="structures/Saldo.java" />
<include name="structures/Value.java" />
<include name="exceptions/HBCI_Exception.java" />
<include name="status/HBCIRetVal.java" />
<include name="status/HBCIStatus.java" />
<include name="status/HBCIMsgStatus.java" />
<include name="status/HBCIDialogStatus.java" />
<include name="status/HBCIExecStatus.java" />
<include name="status/HBCIExecThreadedStatus.java" />
<include name="GV_Result/HBCIJobResult.java" />
<include name="GV_Result/GVR*.java" />
<include name="passport/AbstractHBCIPassport.java" />
<include name="passport/HBCIPassport.java" />
<include name="passport/INILetter.java" />
<include name="GV/HBCIJob.java" />
<include name="callback/*.java" />
<include name="manager/HBCIHandler.java" />
<include name="manager/FileSystemClassLoader.java" />
<include name="manager/HBCIUtils.java" />
<include name="manager/HBCIKey.java" />
<include name="manager/HBCIKernel.java" />
<include name="manager/HBCIKernelFactory.java" />
<include name="swift/DTAUS.java" />
<include name="swift/DTAUS_CH.java" />
<include name="tools/ConvertRDHPassport.java" />
<include name="tools/ConvertSIZRDHPassport.java" />
<include name="tools/CheckAccountCRC.java" />
<include name="tools/INILetter.java" />
<include name="tools/AnalyzeReportOfTransactions.java" />
<include name="tools/ShowLowlevelGVs.java" />
<include name="tools/ShowLowlevelGVRs.java" />
<include name="tools/InitAndTest.java" />
<include name="tools/HBCIBatch.java" />
</fileset>
<target name="javadoc" depends="compile">
<mkdir dir="${doc}/javadoc" />
<javadoc classpath="${classes}" Locale="de_DE" Encoding="ISO-8859-1" Overview="${src}/org/kapott/hbci/tools/doc-files/overview.html" destdir="${doc}/javadoc" charset="ISO-8859-1" Version="yes" docencoding="ISO-8859-1" Author="yes" Use="yes" Doctitle="HBCI4Java Dokumentation" Windowtitle="HBCI4Java Dokumentation" nodeprecated="false">
<fileset refid="docfiles" />
</javadoc>
</target>
<target name="dist" depends="package,javadoc">
<mkdir dir="${dist}/templates" />
<copy todir="${dist}/templates">
<fileset dir="${src}">
<include name="*.template" />
</fileset>
</copy>
<mkdir dir="${dist}/lib" />
<copy todir="${dist}/lib">
<fileset dir="${chipcard}/lib">
<exclude name=".dummy" />
</fileset>
</copy>
<chmod perm="0755">
<fileset dir="${dist}/lib">
<include name="lib*.so" />
</fileset>
</chmod>
<mkdir dir="${dist}/doc/javadoc" />
<copy todir="${dist}/doc/javadoc">
<fileset dir="${doc}/javadoc" />
</copy>
</target>
<target name="clean">
<exec executable="${make}" os="Linux">
<arg line="-C ${chipcard} clean" />
</exec>
<delete file="${chipcard}/src/include/frontend.h" />
<delete dir="${classes}" />
<delete dir="${doc}/javadoc" />
<delete dir="${dist}" />
</target>
</project>