forked from pfrommerd/insteon-terminal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
86 lines (63 loc) · 2.11 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
<project>
<property name="src.dir" value="src"/>
<property name="bin.dir" value="bin"/>
<property name="resources.dir" value="resources"/>
<property name="python.dir" value="python"/>
<property name="jars.dir" value="build/jars"/>
<property name="install-build.dir" value="build/install"/>
<property name="install.dir" value="user/share/insteon-terminal"/>
<property name="libs.dir" value="lib"/>
<property name="main.class" value="us.pfrommer.insteon.terminal.Main"/>
<path id="master-classpath">
<fileset dir="${libs.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${libs.dir}/hub">
<include name="*.jar"/>
</fileset>
<fileset dir="${libs.dir}/logger">
<include name="*.jar"/>
</fileset>
</path>
<!-- Targets -->
<target name="clean">
<delete dir="${bin.dir}"/>
<delete>
<fileset dir="${python.dir}" includes="**/*.class"/>
<fileset dir="${jars.dir}" includes="**/*.jar"/>
</delete>
</target>
<target name="compile">
<mkdir dir="${bin.dir}"/>
<copy todir="${bin.dir}">
<fileset dir="${resources.dir}" includes="**"/>
</copy>
<javac srcdir="${src.dir}" destdir="${bin.dir}"
includeantruntime="false">
<classpath refid="master-classpath"/>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="${jars.dir}"/>
<jar destfile="${jars.dir}/insteon-terminal.jar" basedir="${bin.dir}">
<manifest>
<attribute name="Main-Class" value="${main.class}"/>
</manifest>
</jar>
</target>
<target name="run">
<java classname="${main.class}" fork="true">
<classpath>
<path location="${bin.dir}"/>
<path refid="master-classpath"/>
</classpath>
</java>
</target>
<!-- Targets for packaging/installing -->
<target name="build-install" depends="jar">
<mkdir dir="${build-install.dir}/${install.dir}"/>
</target>
<target name="deb">
</target>
<!-- Targets for installing -->
</project>