-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
38 lines (29 loc) · 1016 Bytes
/
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="jar" name="Create Runnable Jar for Turing Machine">
<!-- ANT 1.7 is required -->
<property name="jarname" value="TuringMachine4.jar" />
<!-- remove all build files -->
<target name="clean">
<delete dir="bin"/>
<delete file="${jarname}"/>
</target>
<!-- build all .class files, except jUnit tests -->
<target name="compile">
<mkdir dir="bin"/>
<copy todir="bin/resources">
<fileset dir="src/resources" />
</copy>
<javac srcdir="src" destdir="bin" includeantruntime="false">
<compilerarg value="-Xlint:deprecation"/>
</javac>
</target>
<!-- output executable jar file -->
<target name="jar" depends="compile">
<jar destfile="${jarname}" basedir="bin">
<manifest>
<attribute name="Main-Class" value="TuringMachine.TuringMachineApp"/>
<attribute name="Class-Path" value="."/>
</manifest>
</jar>
</target>
</project>