-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.xml
More file actions
46 lines (37 loc) · 1.19 KB
/
build.xml
File metadata and controls
46 lines (37 loc) · 1.19 KB
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
<project name="QuickServer.Status.Plugin" default="jar" basedir=".">
<property name="plugin.dir" value="./plugin" />
<property name="plugin.name" value="Status" />
<property name="build.dir" value="${plugin.dir}/${plugin.name}/build/classes" />
<property name="src.dir" value="${plugin.dir}/${plugin.name}/src" />
<path id="project.classpath">
<fileset dir="./dist/">
<include name="*.jar"/>
</fileset>
<fileset dir="${plugin.dir}/${plugin.name}/lib/">
<include name="*.jar"/>
</fileset>
</path>
<target name="help">
<echo>
Build for Stats plugin
Available targets:
compile Compiles the main source
jar Creates main jar file.
</echo>
</target>
<target name="clean">
<delete dir="${build.dir}" />
</target>
<target name="compile">
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}/" destdir="${build.dir}" includeantruntime="false">
<include name="**/*.java"/>
<classpath refid="project.classpath"/>
</javac>
</target>
<target name="jar" depends="compile">
<jar jarfile="${plugin.dir}/${plugin.name}/Stats.jar"
basedir="${build.dir}" includes="**" manifest="${src.dir}/Plugin.MF">
</jar>
</target>
</project>