-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
42 lines (35 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
<project default="jar">
<property name="src" location="src" />
<property name="build" location="bin" />
<property name="dist" location="." />
<property name="lib" location="lib" />
<path id="project.classpath">
<pathelement path="${classpath}" />
<pathelement location="${lib}/craftbukkit-0.0.1-SNAPSHOT.jar" />
<pathelement location="${lib}/Permissions.jar" />
</path>
<target name="init">
<tstamp />
<mkdir dir="${build}" />
<mkdir dir="${lib}" />
<get src="http://ci.bukkit.org/job/dev-CraftBukkit/Recommended/artifact/target/craftbukkit-0.0.1-SNAPSHOT.jar" dest="${lib}" skipexisting="true" />
<get src="http://www.theyeticave.net/downloads/permissions/3.1.5/Permissions.jar" dest="${lib}" skipexisting="true" />
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}" includeAntRuntime="false">
<classpath refid="project.classpath" />
</javac>
<copy file="${src}/plugin.yml" tofile="${build}/plugin.yml" />
</target>
<target name="jar" depends="compile">
<jar jarfile="${dist}/ScratchWorlds.jar" basedir="${build}" includes="**/*.class plugin.yml">
<manifest>
<attribute name="Main-Class" value="ScratchWorlds" />
</manifest>
</jar>
</target>
<target name="clean">
<delete dir="${build}" />
<delete dir="${lib}" />
</target>
</project>