-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
38 lines (33 loc) · 1.14 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
<project name="Balls" default="jar">
<target name="init">
<property name="sourceDir" value="src"/>
<property name="outputDir" value="bin"/>
<property name="jarDir" value="jar"/>
<property name="jarFile" value="Balls.jar"/>
</target>
<target name="jar" depends="build">
<jar destfile="${jarDir}/${jarFile}">
<fileset dir="${outputDir}"/>
<manifest>
<attribute name="Main-Class" value="BallGui"/>
</manifest>
</jar>
</target>
<target name="build" depends="init">
<mkdir dir="${outputDir}"/>
<javac srcdir="${sourceDir}" destdir="${outputDir}"
includeantruntime="false"/>
</target>
<target name="run" depends="jar">
<java jar="${jarDir}/${jarFile}" fork="true"/>
</target>
<target name="runargs" depends="jar">
<java jar="${jarDir}/${jarFile}" fork="true">
<arg line="${args}"/>
</java>
</target>
<target name="clean" depends="init">
<delete dir="${outputDir}" quiet="true"/>
<delete dir="${jarDir}" quiet="true"/>
</target>
</project>