-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.xml
More file actions
231 lines (205 loc) · 10.8 KB
/
Copy pathpackage.xml
File metadata and controls
231 lines (205 loc) · 10.8 KB
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<?xml version="1.0" encoding="UTF-8"?>
<project name="SECSY.package" default="package" basedir=".">
<!--
Apache Ant build file for the SERAM project
This build file generates three JAR-files from the project:
- secsy-0.1.6.jar
- secsy-0.1.6-sources.jar
- secsy-0.1.6-javadoc.jar
- secsy-0.1.6-consistent.jar
The building process starts with cleaning all target files including compiled
java classes, compiled tests, and test reports (see #clean). Afterwards a
timestamp is generated and the target directory structure is created (see #init).
Then the project gets compiled (see #compile) and all unit tests are performed
(see #test). If the compilation ran without errors, the JARs are packaged (see #package).
SERAM depends on the projects TOVAL, JAGAL, JAWL and SEPIA, which compiled classes must be
present under the specified paths.
author: Adrian Lange
-->
<!-- Project details -->
<property name="artifact.name" value="secsy" />
<property name="version.name" value="0.1.7" />
<property name="main-class" value="de.uni.freiburg.iig.telematik.secsy.gui.Startup" />
<!-- Names for generated files -->
<property name="jar.file.name" value="${artifact.name}-${version.name}" />
<property name="jar.sources.file.name" value="${jar.file.name}-sources" />
<property name="jar.javadoc.file.name" value="${jar.file.name}-javadoc" />
<!-- Source and destination directories -->
<property name="src.dir" value="${basedir}/src" />
<property name="target.dir" value="${basedir}/bin" />
<property name="target.dir.jar" value="${target.dir}/${artifact.name}-${version.name}" />
<property name="libs.dir" value="${basedir}/lib" />
<property name="docs.temp.dir" value="${target.dir}/docs" />
<property name="classes.target.dir" value="${target.dir}/classes-ant" />
<property name="docs.temp.dir" value="${target.dir}/docs" />
<property name="icon.file" value="${src.dir}/de/uni/freiburg/iig/telematik/secsy/gui/icons/SecSy.icns" />
<!-- Define classpath -->
<property name="TOVAL.location" value="../TOVAL" />
<property name="JAGAL.location" value="../JAGAL" />
<property name="SEPIA.location" value="../SEPIA" />
<property name="SEWOL.location" value="../SEWOL" />
<path id="TOVAL.classpath">
<pathelement location="${TOVAL.location}/bin/classes-ant" />
</path>
<path id="JAGAL.classpath">
<pathelement location="${JAGAL.location}/bin/classes-ant" />
<path refid="TOVAL.classpath" />
<pathelement location="${JAGAL.location}/lib/junit/junit-4.11.jar" />
<pathelement location="${JAGAL.location}/lib/jgraphXwithsources.jar" />
</path>
<path id="SEWOL.classpath">
<pathelement location="${SEWOL.location}/bin/classes-ant" />
<path refid="TOVAL.classpath" />
<path refid="JAGAL.classpath" />
<pathelement location="${SEWOL.location}/lib/guava-16.0.1.jar" />
<pathelement location="${SEWOL.location}/lib/collections-generic-4.01.jar" />
<pathelement location="${SEWOL.location}/lib/jung-algorithms-2.0.1.jar" />
<pathelement location="${SEWOL.location}/lib/jung-api-2.0.1.jar" />
<pathelement location="${SEWOL.location}/lib/jung-graph-impl-2.0.1.jar" />
<pathelement location="${SEWOL.location}/lib/jung-visualization-2.0.1.jar" />
<pathelement location="${SEWOL.location}/lib/xstream-1.4.8.jar" />
</path>
<path id="SEPIA.classpath">
<pathelement location="${SEPIA.location}/bin/classes-ant" />
<path refid="TOVAL.classpath" />
<path refid="JAGAL.classpath" />
<path refid="SEWOL.classpath" />
<pathelement location="${SEPIA.location}/lib/junit/junit-4.11.jar" />
<pathelement location="${SEPIA.location}/lib/hamcrest/hamcrest-core-1.3.jar" />
<pathelement location="${SEPIA.location}/lib/isorelax/isorelax.jar" />
<pathelement location="${SEPIA.location}/lib/msv/msv-core-2013.6.1.jar" />
<pathelement location="${SEPIA.location}/lib/relaxngDatatype/relaxngDatatype-20020414.jar" />
<pathelement location="${SEPIA.location}/lib/xsdlib/xsdlib-2.2.jar" />
<pathelement location="${SEPIA.location}/lib/xsom/xsom-20110101-SNAPSHOT.jar" />
</path>
<path id="SECSY.classpath">
<pathelement location="${classes.target.dir}" />
<path refid="TOVAL.classpath" />
<path refid="JAGAL.classpath" />
<path refid="SEPIA.classpath" />
<path refid="SEWOL.classpath" />
</path>
<!-- Package JARs -->
<target name="package" depends="compile,package-consistent" description="Packages the project to JAR files">
<echo message="${ant.project.name}: ${ant.file}" />
<echo>Deleting old JARs...</echo>
<delete file="${target.dir.jar}/${jar.file.name}.jar" />
<delete file="${target.dir.jar}/${jar.sources.file.name}.jar" />
<delete file="${target.dir.jar}/${jar.javadoc.file.name}.jar" />
<echo>Generating javadoc files...</echo>
<javadoc sourcepath="${src.dir}" destdir="${docs.temp.dir}">
<fileset dir="${src.dir}">
<include name="**/*.java" />
</fileset>
</javadoc>
<echo>Creating new JARs...</echo>
<jar jarfile="${target.dir.jar}/${jar.file.name}.jar" basedir="${classes.target.dir}">
<manifest>
<attribute name="X-Date" value="${touch.time}" />
</manifest>
</jar>
<jar jarfile="${target.dir.jar}/${jar.sources.file.name}.jar" includes="**/*.java" basedir="${src.dir}">
<manifest>
<attribute name="X-Date" value="${touch.time}" />
</manifest>
</jar>
<jar jarfile="${target.dir.jar}/${jar.javadoc.file.name}.jar" basedir="${docs.temp.dir}">
<manifest>
<attribute name="X-Date" value="${touch.time}" />
</manifest>
</jar>
<echo>Deleting temporary javadoc files...</echo>
<delete dir="${docs.temp.dir}" />
</target>
<!-- Package JARs -->
<target name="package-consistent" depends="compile" description="Packages the project to a consistent JAR file">
<echo message="${ant.project.name}: ${ant.file}" />
<echo>Deleting old JAR...</echo>
<delete file="${target.dir.jar}/${jar.file.name}-consistent.jar" />
<delete file="${target.dir.jar}/${jar.file.name}-runnable.jar" />
<echo>Creating new JAR...</echo>
<jar jarfile="${target.dir.jar}/${jar.file.name}-consistent.jar" basedir="${classes.target.dir}">
<manifest>
<attribute name="Class-Path" value="." />
<attribute name="X-Date" value="${touch.time}" />
</manifest>
<fileset dir="${classes.target.dir}" />
<fileset dir="${TOVAL.location}/bin/classes-ant" />
<fileset dir="${JAGAL.location}/bin/classes-ant" />
<fileset dir="${SEWOL.location}/bin/classes-ant" />
<fileset dir="${SEPIA.location}/bin/classes-ant" />
<zipfileset excludes="META-INF/*.SF" src="${JAGAL.location}/lib/junit/junit-4.11.jar" />
<zipfileset excludes="META-INF/*.SF" src="${JAGAL.location}/lib/jgraphXwithsources.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEWOL.location}/lib/guava-16.0.1.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEWOL.location}/lib/collections-generic-4.01.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEWOL.location}/lib/jung-algorithms-2.0.1.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEWOL.location}/lib/jung-api-2.0.1.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEWOL.location}/lib/jung-graph-impl-2.0.1.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEWOL.location}/lib/jung-visualization-2.0.1.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEWOL.location}/lib/xstream-1.4.8.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEPIA.location}/lib/isorelax/isorelax.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEPIA.location}/lib/msv/msv-core-2013.6.1.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEPIA.location}/lib/relaxngDatatype/relaxngDatatype-20020414.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEPIA.location}/lib/xsdlib/xsdlib-2.2.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEPIA.location}/lib/hamcrest/hamcrest-core-1.3.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEPIA.location}/lib/xsom/xsom-20110101-SNAPSHOT.jar" />
</jar>
<jar jarfile="${target.dir.jar}/${jar.file.name}-runnable.jar" basedir="${classes.target.dir}">
<manifest>
<attribute name="Class-Path" value="." />
<attribute name="X-Date" value="${touch.time}" />
<attribute name="Main-Class" value="${main-class}"/>
</manifest>
<fileset dir="${classes.target.dir}" />
<fileset dir="${TOVAL.location}/bin/classes" />
<fileset dir="${JAGAL.location}/bin/classes" />
<fileset dir="${JAWL.location}/bin/classes" />
<fileset dir="${SEPIA.location}/bin/classes" />
<fileset dir="${SERAM.location}/bin/classes" />
<zipfileset excludes="META-INF/*.SF" src="${SERAM.location}/lib/collections-generic-4.01.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SERAM.location}/lib/jung-algorithms-2.0.1.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SERAM.location}/lib/jung-api-2.0.1.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SERAM.location}/lib/jung-graph-impl-2.0.1.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SERAM.location}/lib/jung-visualization-2.0.1.jar" />
<zipfileset excludes="META-INF/*.SF" src="${JAWL.location}/lib/openxes/OpenXES.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEPIA.location}/lib/isorelax/isorelax.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEPIA.location}/lib/msv/msv-core-2013.6.1.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEPIA.location}/lib/relaxngDatatype/relaxngDatatype-20020414.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEPIA.location}/lib/xsdlib/xsdlib-2.2.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEPIA.location}/lib/hamcrest/hamcrest-core-1.3.jar" />
<zipfileset excludes="META-INF/*.SF" src="${SEPIA.location}/lib/xsom/xsom-20110101-SNAPSHOT.jar" />
</jar>
</target>
<jarbundler dir="${target.dir.jar}"
name="SecSy"
mainclass="${main-class}"
jar="${target.dir.jar}/${jar.file.name}-runnable.jar"
jvmversion="1.6"
icon="${icon.file}"/>
<target name="compile" depends="init" description="Compiles the source and the test files">
<echo>Compile classes...</echo>
<javac destdir="${classes.target.dir}" includeantruntime="false">
<src path="${src.dir}" />
<classpath refid="SECSY.classpath" />
<compilerarg value="-Xlint"/>
</javac>
</target>
<target name="clean" description="Deletes the target files including current JARs. Old versions of the JARs stay untouched.">
<echo>Delete target files...</echo>
<!-- Delete compiled classes and tests -->
<delete dir="${classes.target.dir}" />
</target>
<target name="init" depends="clean" description="Creates the target directory structure">
<echo>Create timestamp...</echo>
<tstamp>
<format property="touch.time" pattern="dd/MM/yyyy hh:mm aa" />
</tstamp>
<echo>Prepare directories...</echo>
<mkdir dir="${classes.target.dir}" />
<copy includeemptydirs="false" todir="${classes.target.dir}">
<fileset dir="${src.dir}">
<exclude name="**/*.java" />
</fileset>
</copy>
</target>
</project>