-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.xml
70 lines (62 loc) · 1.81 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="ShairPort" default="dist" basedir=".">
<property name="src" location="src" />
<property name="lib" location="lib" />
<property name="bin" location="bin" />
<property name="dist" location="DIST" />
<path id="lib_cp">
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="build">
<mkdir dir="${bin}"/>
<javac srcdir="${src}" destdir="${bin}"
classpathref="lib_cp" includeantruntime="false"
verbose="true" debug="true"
source="1.6" target="1.6" />
</target>
<target name="dist" depends="build">
<mkdir dir="${dist}"/>
<mkdir dir="${dist}/lib"/>
<copy todir="${dist}/lib" flatten="true">
<path refid="lib_cp" />
</copy>
<manifestclasspath property="jar_nogui" jarfile="${dist}/RPlayNoGui.jar">
<classpath>
<fileset dir="${dist}/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
</manifestclasspath>
<jar destfile="${dist}/RPlayNoGui.jar">
<fileset dir="${bin}"/>
<manifest>
<attribute name="Main-Class" value="RPlayNoGui"/>
<attribute name="Class-Path" value="${jar_nogui}" />
</manifest>
</jar>
<manifestclasspath property="jar_gui" jarfile="${dist}/RPlay.jar">
<classpath>
<fileset dir="${dist}/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
</manifestclasspath>
<jar destfile="${dist}/RPlay.jar">
<fileset dir="${bin}"/>
<manifest>
<attribute name="Main-Class" value="RPlay"/>
<attribute name="Class-Path" value="${jar_gui}" />
</manifest>
</jar>
</target>
<target name="run">
<java fork="true" classname="RPlayNoGui">
<classpath path="${dist}/RPlayNoGui.jar"/>
<arg value="myAirport"/>
</java>
<java fork="true" classname="RPlay">
<classpath path="${dist}/RPlay.jar"/>
</java>
</target>
</project>