forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
62 lines (50 loc) · 1.56 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
<?xml version="1.0" encoding="utf-8"?>
<project name="jxtray" default="jar" basedir=".">
<property file="${basedir}/build.properties"/>
<property file="${basedir}/default.properties"/>
<property name="jxtray.version" value="0.5"/>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
<mkdir dir="${javadoc}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${srcdir}"
destdir="${build}"
classpath="${classpath}"
source="1.4"
target="1.4"/>
<copy toDir="${build}/images">
<fileset dir="images" includes="**/*.*"/>
</copy>
<copy toDir="${build}/share">
<fileset dir="share" includes="**/*.*"/>
</copy>
<copy toDir="${build}/doc">
<fileset dir="doc" includes="**/*.*"/>
</copy>
</target>
<target name="javadoc" depends="compile">
<javadoc sourcepath="${srcdir}"
destdir="${javadoc}"
packagenames="${packages}"/>
</target>
<target name="jar" depends="compile">
<!--
<unjar dest="${build}">
<fileset dir="${basedir}/lib" includes="**/*.jar"/>
</unjar>
-->
<jar jarfile="${dist}/jxtray-${jxtray.version}.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="jxtray.Jxtray"/>
</manifest>
</jar>
</target>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
<delete dir="${javadoc}"/>
</target>
</project>