forked from Beezig/Beezig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
53 lines (41 loc) · 1.54 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
<project name="Beezig" basedir="." default="jar">
<property name="lib.dir" value="libs"/>
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.dir" value="${build.dir}/jar"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="compile">
<mkdir dir="${classes.dir}"/>
<javac destdir="${classes.dir}" classpathref="classpath">
<src path="src"/>
<src path="hive-api-wrapper/src/main/java" />
</javac>
</target>
<target name="jar">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/Beezig.jar" basedir="build/classes" keepcompression="true">
<fileset dir="${src.dir}" casesensitive="yes">
<include name="plugin.json"/>
<include name="modules.json"/>
<include name="core/messages/*"/>
<include name="lang/*"/>
<include name="version.txt"/>
<include name="javazoom/jl/decoder/*.ser"/>
</fileset>
<zipfileset dir="src/libraries" prefix="libraries"/>
</jar>
</target>
<target name="run" depends="jar">
<java fork="true">
<classpath>
<path refid="classpath"/>
<path location="${jar.dir}/${ant.project.name}.jar"/>
</classpath>
</java>
</target>
<target name="test">
</target>
</project>