-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
41 lines (34 loc) · 1.02 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
<project name="Calculator">
<target name="build">
<mkdir dir="build"/>
<javac srcdir="src"
destdir="build"/>
</target>
<target name="clean">
<delete dir="build"/>
<delete dir="doc"/>
<delete file="Calculator.jar"/>
</target>
<target name="javadoc">
<mkdir dir="doc"/>
<javadoc destdir="doc"
sourcepath="src"
charset="utf8"/>
</target>
<target name="run" depends="build">
<java classname="be.lionelgoffaux.calculator.Main"
classpath="build"
fork="true"/>
</target>
<target name="jar" depends="build">
<jar destfile="Calculator.jar" basedir="build/">
<manifest>
<attribute name="Main-Class" value="be.lionelgoffaux.calculator.Main"/>
</manifest>
</jar>
<delete dir="build"/>
</target>
<target name="runJar" depends="jar">
<java jar="Calculator.jar" fork="true"/>
</target>
</project>