0
|
1 <project>
|
|
2
|
|
3 <target name="clean">
|
|
4 <delete dir="build"/>
|
|
5 </target>
|
|
6
|
|
7 <target name="compile">
|
|
8 <mkdir dir="build/classes"/>
|
|
9 <javac srcdir="src" destdir="build/classes"/>
|
|
10 </target>
|
|
11
|
|
12
|
|
13 <target name="jar">
|
|
14 <mkdir dir="build/jar"/>
|
|
15 <jar destfile="build/jar/NumPuzzle.jar" basedir="build/classes">
|
|
16
|
|
17 <manifest>
|
|
18 <attribute name="Main-Class" value="numpuzzle.NumPuzzle"/>
|
|
19 </manifest>
|
|
20 </jar>
|
|
21 </target>
|
|
22
|
|
23 <target name="run">
|
|
24 <java jar="build/jar/NumPuzzle.jar" fork="true"/>
|
|
25 </target>
|
|
26
|
|
27 </project>
|