forked from bencall/RPlay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
59 lines (52 loc) · 1.48 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
<project name="ShairPort" default="dist" basedir=".">
<property name="src" location="src" />
<property name="lib" location="libs" />
<property name="bin" location="bin" />
<property name="dist" location="Binaries" />
<property name="dist_lib" location="${dist}/Rplay_lib" />
<property name="dist_jar" location="${dist}/Rplay.jar" />
<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}"/>
<manifestclasspath property="jar_cp" jarfile="${dist_jar}">
<classpath>
<fileset dir="${dist_lib}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</manifestclasspath>
<jar destfile="${dist_jar}">
<fileset dir="${bin}"/>
<manifest>
<attribute name="Main-Class" value="Rplay"/>
<attribute name="Class-Path" value="${jar_cp}" />
</manifest>
</jar>
<mkdir dir="${dist_lib}"/>
<copy todir="${dist_lib}" flatten="true">
<path refid="lib_cp" />
</copy>
</target>
<target name="run">
<!--
<java fork="true" classname="RPlayNoGui">
<classpath path="${dist_jar}"/>
<arg value="myAirport"/>
</java>
-->
<java fork="true" classname="Rplay">
<classpath path="${dist_jar}"/>
</java>
</target>
</project>