This repository has been archived by the owner on Dec 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
70 lines (59 loc) · 1.92 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
<project name="Archiver plugin" default="dist">
<!-- set global properties for this build -->
<property name="src" value="src" />
<property name="dist" value="dist"/>
<property name="dest" value="bin"/>
<property name="lib" value="lib"/>
<property name="version" value="1.0" />
<path id="project.class.path">
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</path>
<target name="init">
<!-- Create the build directory structure used by compile -->
<tstamp />
<mkdir dir="${dist}" />
<mkdir dir="${dest}" />
</target>
<target name="compile" depends="init">
<!-- Compile the java code from ${src} into ${dest} -->
<javac
debug="on"
encoding="UTF-8"
target="6"
source="6"
srcdir="${src}"
destdir="${dest}"
includeantruntime="false"
classpathref="project.class.path">
<classpath id="project.class.path">
<fileset dir="${lib}" includes="**/*.jar *.zip"/>
</classpath>
</javac>
</target>
<target name="clean">
<!-- Delete the ${dist} directory tree -->
<delete dir="${dist}" />
<delete dir="${dest}" />
</target>
<target name="dist" depends="compile">
<!-- Copy non-Java artifacts to the binary folder alongside the class files -->
<copy todir="${dest}">
<fileset dir="${src}" includes="**/*.png **/*.xml **/*.xul **/*txt **/*properties"/>
</copy>
<!-- Create the distribution directory -->
<jar
jarfile="${dist}/archiver-step.jar"
index="true">
<fileset dir="${dest}"> <include name="**/*"/></fileset>
<manifest>
<attribute name="Manifest-Version" value="${version}.${DSTAMP}" />
<attribute name="Implementation-Title" value="Archiver" />
<attribute name="Implementation-Version" value="${build.number}" />
<attribute name="Implementation-Vendor" value="know.bi" />
</manifest>
</jar>
</target>
<target name="rebuild" depends="compile" />
</project>