-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.xml
69 lines (58 loc) · 2.4 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
63
64
65
66
67
68
69
<project default="compile">
<!-- SETUP VARIABLES AND PATHS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<property name="lib.dir" value="lib" />
<property name="src.dir" location="src/" />
<property name="build.dir" location="bin/" />
<property name="dist.dir" location="dist/" />
<property name="dist.name" value="WorstCaseAnalyst" />
<property name="report.dir" location="testreport" />
<property name="version" value="1.0" />
<!-- The classpath for running the system -->
<path id="build.classpath">
<pathelement path="${build.dir}"/>
<fileset dir="${lib.dir}" includes="*.jar"/>
</path>
<!-- BASIC TARGETS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- CLEANING TASK - "ant clean" -->
<target name="clean">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
<delete dir="${report.dir}"/>
</target>
<!-- COMPILING TASK - "ant compile" -->
<target name="compile">
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}" destdir="${build.dir}" includeantruntime="false" debug="true" debuglevel="vars,lines,source">
<classpath refid="build.classpath"/>
<compilerarg value="-Xlint:unchecked"/>
<compilerarg value="-Xlint:deprecation"/>
</javac>
</target>
<!-- Run the JUnit Tests -->
<!-- Output is XML, could also be plain-->
<target name="test" depends="compile">
<mkdir dir="${report.dir}"/>
<junit printsummary="on" fork="true" haltonfailure="yes">
<classpath refid="build.classpath" />
<formatter type="xml" />
<batchtest todir="${report.dir}">
<fileset dir="${test.dir}">
<include name="**/*Test*.java" />
</fileset>
</batchtest>
</junit>
</target>
<!-- RUNNING TARGETS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!--RUNNING TASK - "ant run" -->
<target name="run">
<antcall target="RunExperiment">
</antcall>
</target>
<!--RUNNING TASK - "ant RunExperiment" -->
<target name="RunExperiment" depends="compile">
<java fork="true" classname="edu.allegheny.worstcaseanalyst.schemaexperiment.RunExperiment" maxmemory="3072m">
<classpath refid="build.classpath" />
<arg value="" />
</java>
</target>
</project>