-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
66 lines (57 loc) · 1.71 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
<project name="sm" default="compile" basedir=".">
<property environment="env" />
<property name="test.build.dir" location="bin" />
<property name="test.src.dir" location="src" />
<!--
<property name="test.report.dir" location="report" />
-->
<property name="lib.dir" location="lib" />
<condition property="webui-framework.dir" value="../../webui-framework">
<not>
<isset property="webui-framework.dir"/>
</not>
</condition>
<path id="utils.cp">
<fileset dir="${lib.dir}">
<include name="*.blarg" />
<include name="*.jar" />
</fileset>
<fileset dir="${webui-framework.dir}/lib">
<include name="*.jar" />
</fileset>
</path>
<path id="tests.cp">
<pathelement location="${test.build.dir}" />
<pathelement location="${webui-framework.dir}/bin" />
<path refid="utils.cp" />
</path>
<!--
<taskdef resource="testngtasks">
<classpath refid="utils.cp"/>
</taskdef>
-->
<target name="deps">
<echo message="Compiling dependencies in ${webui-framework.dir}" />
<ant antfile="${webui-framework.dir}/build.xml">
<property name="basedir" value="${webui-framework.dir}" />
</ant>
<echo message="Done." />
</target>
<target name="compile" depends="">
<echo message="Compiling testsuite in ${basedir}" />
<antcall target="deps" />
<mkdir dir="${test.build.dir}" />
<javac srcdir="${test.src.dir}" destdir="${test.build.dir}" classpathref="tests.cp" debug="on" />
<echo message="Done." />
</target>
<!--
<target name="test" depends="compile">
<testng classpathref="tests.cp"
outputDir="${testng.report.dir}"
sourcedir="${test.src.dir}"
haltOnfailure="true">
<xmlfileset dir="." includes="sm-tests.xml"/>
</testng>
</target>
-->
</project>