-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
26 lines (19 loc) · 869 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
<project default="compile">
<!-- Define a property, which is like a variable for the build file, -->
<!-- with the classpath for all compilation & execution targets. -->
<property name="classpath" value="bin:biuoop-1.4.jar" />
<!-- Compile all java files under `src`, and export .class files into `bin` -->
<target name="compile">
<mkdir dir="bin"/>
<javac classpath="${classpath}" srcdir="src" destdir="bin" includeantruntime="false"/>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<target name="run" depends="compile" >
<java classname="Ass6Game" classpath="${classpath}" fork="true">
<!-- This specifies to pass the arguments from the `ant` command into the `java` execution command -->
<arg line="${args}"/>
</java>
</target>
</project>