Skip to content

Commit 89296ed

Browse files
Jarrod RibbleTooTallNate
authored andcommitted
Add a clean target.
1 parent 17c74d3 commit 89296ed

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

build.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<project default="jar">
22

33
<target name="compile">
4-
<javac includeantruntime="false" srcdir="src" />
5-
<javac includeantruntime="false" srcdir="example" classpath="src" />
4+
<mkdir dir="build/classes"/>
5+
<mkdir dir="build/example"/>
6+
<javac includeantruntime="false" debug="on" srcdir="src" destdir="build/classes" />
7+
<javac includeantruntime="false" srcdir="example" classpath="src" destdir="build/example" />
68
</target>
79

810
<target name="jar" depends="compile">
911
<jar destfile="dist/WebSocket.jar"
10-
basedir="src"
12+
basedir="build/classes"
1113
includes="**/*.class"
1214
/>
1315
</target>
@@ -18,5 +20,9 @@
1820
destdir="doc"
1921
/>
2022
</target>
23+
24+
<target name="clean">
25+
<delete dir="build"/>
26+
</target>
2127

2228
</project>

0 commit comments

Comments
 (0)