forked from MilkBowl/AutoSave
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
33 lines (28 loc) · 1016 Bytes
/
build.xml
File metadata and controls
33 lines (28 loc) · 1016 Bytes
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
<?xml version="1.0" ?>
<project default="main">
<property name="lib.dir" value="lib"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="main" depends="clean, compile, compress" description="Main target">
<echo>Building the .jar file.</echo>
</target>
<target name="clean" description="Cleans project">
<echo>Cleaning</echo>
<delete failonerror="false">
<fileset dir="bin" includes="**/*" />
</delete>
<delete file="AutoSave.jar" />
<mkdir dir="bin"/>
</target>
<target name="compile" description="Compilation target">
<echo>Compiling</echo>
<javac srcdir="." destdir="bin" classpathref="classpath" />
<copyfile dest="bin/plugin.yml" src="plugin.yml"/>
</target>
<target name="compress" description="Compression target">
<echo>Compressing</echo>
<jar jarfile="AutoSave.jar" basedir="bin" includes="sh/**/*, plugin.yml" />
<delete dir="bin" />
</target>
</project>