-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
51 lines (48 loc) · 1.46 KB
/
build.xml
File metadata and controls
51 lines (48 loc) · 1.46 KB
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
<?xml version="1.0"?>
<project default="main" basedir="." name="JPONEngine" xmlns:ivy="antlib:org.apache.ivy.ant">
<echo message="pulling in property files" />
<property file="build.properties" />
<echo message="start" />
<path id="lib.path.id">
<fileset dir="${lib.dir}" />
</path>
<path id="run.path.id">
<path refid="lib.path.id">
</path>
<path location="${build.dir}" />
</path>
<!-- - - - - - - - - - - - - - - - - -
target: clean
- - - - - - - - - - - - - - - - - -->
<target name="clean">
<delete dir="${build.dir}"></delete>
</target>
<target name="init" description="初始化目录">
<mkdir dir="${build.dir}" description="构建base目录"/>
<mkdir dir="${build.dir}/${test.report.dir}" description="测试报告"/>
</target>
<target name="download-libs" description="检查库并下载缺少的库">
<ivy:info file="${ivy.file}" />
<ivy:retrieve />
</target>
<target name="main" depends="download-libs">
</target>
<target name="java-compile" description="JAVA代码编译">
<javac>
</javac>
</target>
<target name="test" description="测试">
<junit id="test" description="单元测试" dir="src">
<classpath>
<path refid="lib.path.id"/>
</classpath>
<batchtest fork="yes" todir="${reports.tests}">
<fileset dir="${src.test}">
<include name="**/*Test.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="jar">
</target>
</project>