-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
62 lines (52 loc) · 1.94 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="Starlorn">
<property environment="env"/>
<property name="ant.build.javac.source" value="1.8"/>
<property name="ant.build.javac.target" value="1.8"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="bin" value="bin"/>
<property name="src" value="src"/>
<path id="javac_path">
<pathelement location="${bin}"/>
</path>
<mkdir dir="${bin}"/>
<manifestclasspath property="manifest_path" jarfile="${bin}/Starlorn.jar">
<classpath path="${bin}"/>
</manifestclasspath>
<manifest file="${bin}/MANIFEST.MF">
<attribute name="Main-Class"
value="edu.stuy.starlorn.Starlorn"/>
<attribute name="Created-By"
value="Josh Hofing, Ben Kurtovic, Victor Jiao"/>
<attribute name="Class-Path"
value="${manifest_path}"/>
</manifest>
<target name="clean">
<delete dir="${bin}"/>
</target>
<target depends="clean" name="cleanall"/>
<target name="build">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="${bin}"
includeantruntime="false">
<src path="${src}"/>
<classpath refid="javac_path"/>
</javac>
<jar file="${bin}/Starlorn.jar" manifest="${bin}/MANIFEST.MF">
<fileset dir="${bin}" includes="**/*.class"/>
</jar>
</target>
<target depends="build" name="run">
<java jar="${bin}/${ant.project.name}.jar" fork="true"/>
</target>
<target name="urn">
<echo message=" ______"/>
<echo message=" (______)"/>
<echo message=" ) ("/>
<echo message=" ,' `."/>
<echo message="( )"/>
<echo message=" `. .'"/>
<echo message=" ) ("/>
<echo message=" /____\"/>
</target>
</project>