-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
26 lines (22 loc) · 727 Bytes
/
build.xml
File metadata and controls
26 lines (22 loc) · 727 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
<?xml version="1.0" ?>
<!-- Configuration of the Ant build system to generate a Jar file -->
<project>
<target name="clean" depends="clean-ant">
<delete file="bin/MP2.jar" />
</target>
<target name="clean-ant">
<delete dir="bin/ant" />
</target>
<target name="compile-no-main">
<mkdir dir="bin/ant" />
<javac srcdir="src" destdir="bin/ant" includeantruntime="false" debug="true">
<exclude name="**/Main.java"/>
</javac>
</target>
<target name="jar" depends="compile-no-main">
<jar destfile="bin/MP2.jar" basedir="bin/ant">
<fileset dir="src" includes="**/*.java" excludes="**/Main.java" />
</jar>
</target>
<target name="jar-only" depends="jar, clean-ant" />
</project>