-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
37 lines (32 loc) · 1.13 KB
/
build.xml
File metadata and controls
37 lines (32 loc) · 1.13 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="ContestBot" default="jar" basedir=".">
<property name="src" location="src"/>
<property name="bin" location="bin"/>
<property name="lib" location="lib"/>
<property name="jarfile" location="${ant.project.name}.jar"/>
<fileset id="lib.jars" dir="${lib}">
<include name="**/*.jar"/>
</fileset>
<path id="lib.path">
<fileset refid="lib.jars"/>
</path>
<target name="compile">
<mkdir dir="${bin}"/>
<javac srcdir="src"
destdir="bin"
includeAntRuntime="no"
classpathref="lib.path">
<compilerarg value="-nowarn"/>
</javac>
</target>
<target name="jar" depends="compile" description="Build jar">
<jar jarfile="${jarfile}" basedir="${bin}" manifest="Manifest">
<!-- Merge library jars into final jar file -->
<zipgroupfileset refid="lib.jars"/>
</jar>
</target>
<target name="clean" description="Remove build and dist directories">
<delete dir="${bin}"/>
<delete file="${jarfile}"/>
</target>
</project>