-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhw04.xml
82 lines (71 loc) · 3 KB
/
hw04.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
70
71
72
73
74
75
76
77
78
79
80
81
82
<!-- To run this build script, type:
ant -f hw.xml
on a shell.
-->
<project name="SecurityContext-junit5-ivy" basedir="." default="clean" xmlns:ivy="antlib:org.apache.ivy.ant">
<property name="src" location="src" />
<property name="bin" location="bin" />
<property name="test.src" location="test/src" />
<property name="test.bin" location="test/bin" />
<property name="ivy.lib" location="lib"/>
<path id="classpath">
<pathelement location="${bin}" />
<pathelement location="${test.bin}" />
<fileset dir="${ivy.lib}"/>
</path>
<target name="init">
<mkdir dir="${bin}"/>
<mkdir dir="${test.bin}"/>
<mkdir dir="test/reports"/>
<mkdir dir="${ivy.lib}"/>
<echo message="CLASSPATH: ${toString:classpath}" />
</target>
<target name="resolve" depends="init"
description="--> Download JAR files (listed in ivy.xml) to the 'lib' directory.">
<ivy:retrieve/>
</target>
<target name="compile" depends="resolve">
<javac srcdir="${src}" destdir="${bin}" includeAntRuntime="no">
<classpath refid="classpath"/>
<include name="edu/umb/cs681/hw04/*.java"/>
<!-- include name="edu/umb/cs680/junit5intro/SecurityContext.java"/-->
</javac>
<javac srcdir="${test.src}" destdir="${test.bin}" includeAntRuntime="no">
<classpath refid="classpath"/>
<include name="edu/umb/cs681/hw04/*.java"/>
<!-- include name="edu/umb/cs680/junit5intro/SecurityContextTest.java"/-->
</javac>
</target>
<!--<target name="test" depends="compile">
<!–junitlauncher printSummary="yes">
<classpath refid="classpath" />
<test outputdir="test" name="edu.umb.cs680.junit5intro.SecurityContextTest"/>
<listener type="legacy-plain" sendSysOut="true"/>
</junitlauncher–>
<junitlauncher haltOnFailure="true" printSummary="true">
<classpath refid="classpath" />
<testclasses outputdir="test">
<fileset dir="${test.bin}">
<include name="edu/umb/cs681/hw04/*Test.class"/>
</fileset>
<listener type="legacy-plain" sendSysOut="true"/>
<!–listener type="legacy-brief" sendSysOut="true"/–>
</testclasses>
</junitlauncher>
</target>-->
<target name="run" depends="compile">
<java classname="edu.umb.cs681.hw04.Housing"
classpathref="classpath"
fork="true"/>
</target>
<target name="clean" depends="run">
<delete includeemptydirs="true">
<fileset dir="${bin}/edu/umb/cs681/hw04" includes="**/*"/>
<!-- <fileset dir="${test.bin}/edu/umb/cs681/hw04" includes="**/*"/>-->
</delete>
</target>
<target name="clean-cache"
description="--> clean the ivy cache (by default ~/.ivy2/cache)">
<ivy:cleancache/>
</target>
</project>