-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
114 lines (88 loc) · 3.31 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
<project name="AESZip" default="start.complete">
<!--
*****************************************************************
* information
*****************************************************************
-->
<description>AESZip</description>
<!--
*****************************************************************
* global properties
*****************************************************************
-->
<property name="jar.name" value="zip4j" />
<!--
*****************************************************************
* general properties
*****************************************************************
-->
<property name="build" location="${basedir}/build" />
<property name="buildnumber" location="${build}/buildnumber" />
<property name="temp" location="${build}/temp" />
<property name="src" location="${basedir}/src" />
<property name="libs" location="${basedir}/libs" />
<property name="classes" location="${temp}/classes" />
<property name="install" location="${build}/install" />
<!--
*****************************************************************
* logging
*****************************************************************
-->
<record name="${build}/build.log" />
<!--
*****************************************************************
* INTERNAL TASKS
*****************************************************************
-->
<!--
* cleanup tasks
-->
<target name="clean.start">
<delete dir="${temp}" />
<delete dir="${install}" />
</target>
<target name="clean.stop">
<delete dir="${temp}" />
</target>
<!--
* compile, build tasks
-->
<target name="build">
<delete dir="${classes}" />
<mkdir dir="${classes}" />
<!-- compile the java code -->
<javac srcdir="${src}" destdir="${classes}" debug="on" deprecation="on" source="1.5" target="1.5">
<classpath>
<fileset dir="${libs}">
<include name="*.jar" />
</fileset>
</classpath>
</javac>
<!-- copy ressource files -->
<copy todir="${classes}">
<fileset dir="${src}">
<include name="**/*" />
<exclude name="**/*.java" />
<exclude name="**/package.html" />
</fileset>
</copy>
<mkdir dir="${install}" />
<!-- buildnumber -->
<taskdef name="buildnr" classname="com.sibvisions.addons.ant.AntBuildNumber" classpath="${buildnumber}/addons.jar" />
<buildnr buildfile="${buildnumber}/buildnr.properties" version="1.3.1u1" name="zip4j"/>
<!-- create the jar file -->
<jar jarfile="${install}/${jar.name}-${build.version}.jar" basedir="${classes}">
<manifest>
<attribute name="Implementation-Title" value="${build.versionstring}"/>
<attribute name="Implementation-Version" value="b${build.number} ${build.date}"/>
<attribute name="Implementation-Vendor" value="SIB Visions GmbH"/>
</manifest>
</jar>
</target>
<!--
*****************************************************************
* PUBLIC START TASKS
*****************************************************************
-->
<target name="start.complete" depends="clean.start, build, clean.stop" />
</project>