-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
40 lines (33 loc) · 1.41 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
<project default="compile">
<!-- Define a set of paths (file names) to pass to checkstyle - all .java files under `src` and its subdirectories (recursively)-->
<path id="sourceFiles">
<fileset dir="src" casesensitive="yes">
<include name="**/*.java"/>
</fileset>
</path>
<!-- 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" />
<!-- 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>
<!-- This target is for your convenience; we will not grade it. -->
<target name="run-gui-example" depends="compile" >
<java classname="SimpleGuiExample" classpath="${classpath}" fork="true"/>
</target>
<target name="run" depends="compile" >
<java classname="ExpressionsTest" classpath="${classpath}" fork="true"/>
</target>
<!-- Run checkstyle on all our source files -->
<target name="check">
<java jar="checkstyle-5.7-all.jar" fork="true">
<arg line="-c biuoop.xml" />
<arg line="src/*.java" />
</java>
</target>
</project>