-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
58 lines (57 loc) · 2.29 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
<?xml version="1.0"?>
<project name="MusicMachineServer" default="compile">
<!-- Parts of this file is borrowed from the Jotify api_split fork. Thanks! -->
<description>
Build file for MusicMachineServer.
</description>
<!-- set properties for this build -->
<property environment="env"/>
<property name="src.dir" location="src"/>
<property name="build.dir" location="build"/>
<property name="dest.dir" location="dest"/>
<property name="lib.dir" location="lib"/>
<path id="build.classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="init">
<tstamp/>
<mkdir dir="${build.dir}"/>
</target>
<!-- deletes class files -->
<target name="clean" description="clean up all generated files">
<delete dir="${build.dir}"/>
<delete dir="${dest.dir}"/>
</target>
<target name="compile" depends="init" description="compile the source">
<javac srcdir="${src.dir}" destdir="${build.dir}">
<classpath refid="build.classpath"/>
</javac>
<copy todir="${build.dir}">
<fileset dir="${src.dir}">
<include name="**/resources/**"/>
</fileset>
</copy>
</target>
<target name="jar" depends="compile">
<copy todir="${build.dir}" filtering="off">
<zipfileset src="${lib.dir}/gson-1.4.jar" includes="**/*.class"/>
<zipfileset src="${lib.dir}/jmdns.jar" includes="**/*.class"/>
<zipfileset src="${lib.dir}/jorbis.jar" includes="**/*.class"/>
<zipfileset src="${lib.dir}/jotify-api.jar" includes="**/*.class"/>
<zipfileset src="${lib.dir}/jotify-gateway.jar" includes="**/*.class"/>
<zipfileset src="${lib.dir}/tritonus_jorbis-0.3.6.jar" includes="**/*.class"/>
<zipfileset src="${lib.dir}/tritonus_share-0.3.6.jar" includes="**/*.class"/>
<zipfileset src="${lib.dir}/json.jar" includes="**/*.class"/>
<zipfileset src="${lib.dir}/last.fm-bindings.jar" includes="**/*.class"/>
</copy>
<mkdir dir="${dest.dir}" />
<jar destfile="${dest.dir}/musicmachine.jar" basedir="${build.dir}" compress="true">
<manifest>
<attribute name="Class-Path" value="."/>
<attribute name="Main-Class" value="com.markupartist.nollbit.musicmachine.server.MusicMachineApplication"/>
</manifest>
</jar>
</target>
</project>