forked from robbymckilliam/JavaLatticeLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
57 lines (51 loc) · 1.5 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
<project name="JavaLatticeLibrary">
<property environment="env"/>
<property name="base.dir" value="." />
<property name="sources.dir" value="${base.dir}" />
<property name="build.dir" value="${base.dir}/build" />
<target name="init">
<path id="build.classpath">
<fileset dir="${base.dir}/lib">
<include name="*.jar" />
<exclude name="JavaLatticeLibrary.jar" />
</fileset>
</path>
</target>
<target name="build" depends="init">
<mkdir dir="${build.dir}" />
<javac srcdir="${sources.dir}"
destdir="${build.dir}"
classpathref="build.classpath"
includeantruntime="false">
<!--<compilerarg value="-Xlint:deprecation" />-->
<!--<compilerarg value="-Xlint:unchecked" />-->
<include name="src/**/*.java" />
<include name="test/**/*.java" />
</javac>
<jar destfile="${base.dir}/lib/JavaLatticeLibrary.jar">
<fileset dir="src/"/>
<fileset dir="test/"/>
<fileset dir="build/"/>
</jar>
</target>
<target name="clean">
<delete>
<fileset dir="${build.dir}" includes="**/*.class" />
</delete>
</target>
<target name="test" depends="init">
<junit printsummary="yes">
<classpath>
<fileset dir="${base.dir}/lib">
<include name="*.jar" />
</fileset>
</classpath>
<formatter type="plain"/>
<batchtest fork="yes" todir="${base.dir}">
<fileset dir="${build.dir}">
<include name="**/*Test.class"/>
</fileset>
</batchtest>
</junit>
</target>
</project>