-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.xml
41 lines (35 loc) · 1.26 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
<project name="AutoShutdownPlugin" default="dist" basedir=".">
<property name="pluginname" value="AutoShutdown"/>
<property name="bukkit.jar" location="../../bukkit/bukkit-0.0.1-SNAPSHOT.jar"/>
<property name="craftbukkit.jar" location="../../bukkit/craftbukkit-0.0.1-SNAPSHOT.jar"/>
<property name="plugins" location="../../bukkit/plugins/"/>
<property name="src" location="src"/>
<property name="obj" location="obj"/>
<property name="dist" location="dist"/>
<target name="init">
<mkdir dir="${obj}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${obj}" includeantruntime="false" debug="true">
<classpath>
<pathelement location="${bukkit.jar}"/>
<pathelement location="${craftbukkit.jar}"/>
</classpath>
</javac>
</target>
<target name="dist" depends="compile">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/${pluginname}.jar">
<fileset dir="${obj}"/>
<fileset file="${src}/plugin.yml"/>
<fileset file="${src}/AutoShutdown.properties"/>
</jar>
</target>
<target name="deploy" depends="dist">
<copy file="${dist}/${pluginname}.jar" todir="${plugins}"/>
</target>
<target name="clean">
<delete dir="${obj}"/>
<delete dir="${dist}"/>
</target>
</project>