-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
43 lines (36 loc) · 1.4 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
<?xml version="1.0" ?>
<project default="main">
<property environment="env"/>
<path id="classpath">
<fileset dir="lib" includes="**/*.jar"/>
<fileset dir="../../Vault/lastSuccessful/archive" includes="**/*.jar" />
</path>
<target name="jar" depends="main" />
<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="WhosThere.jar" />
<mkdir dir="bin"/>
</target>
<target name="compile" description="Compilation target">
<echo>Compiling</echo>
<javac srcdir="." destdir="bin" debug="on" debuglevel="lines,vars,source" classpathref="classpath" includeantruntime="false" />
<copy file="src/plugin.yml" tofile="bin/plugin.yml" />
<copy file="src/config.yml" tofile="bin/config.yml" />
<replace file="bin/plugin.yml" token="b000" value="b${env.BUILD_NUMBER}" />
</target>
<target name="compress" description="Compression target">
<echo>Compressing</echo>
<jar jarfile="WhosThere.jar" basedir="bin" includes="**/*, plugin.yml, config.yml">
<manifest>
<attribute name="Built-By" value="${user.name}" />
</manifest>
</jar>
<delete dir="bin" />
</target>
</project>