-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
31 lines (31 loc) · 1 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
<project>
<path id="classpath">
<fileset dir="lib" includes="**/*.jar" />
</path>
<path id="application" location="mvc.jar" />
<target name="build">
<mkdir dir="out" />
<javac srcdir="src" destdir="out" classpathref="classpath"/>
</target>
<target name="make" depends="build">
<jar destfile="mvc.jar" basedir="out">
<zipgroupfileset dir="lib" includes="**/*.jar"/>
<manifest>
<attribute name="Main-Class" value="Main" />
</manifest>
</jar>
</target>
<target name="test" depends="make">
<mkdir dir="report" />
<junit printsummary="yes">
<classpath>
<path refid="classpath" />
<path refid="application" />
</classpath>
<formatter type="xml" />
<batchtest fork="yes" todir="report">
<fileset dir="src" includes="**/*Test.java" />
</batchtest>
</junit>
</target>
</project>