-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
43 lines (40 loc) · 1.52 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
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<project name="myAntProject" default="run" basedir=".">
<property name="bin" value="${basedir}\bin"/>
<property name="src" value="${basedir}\src"/>
<property name="lib" value="${basedir}\libs"/>
<!--<property name="debuglevel" value="lines,vars,source"/>-->
<!-- <property name="report" value="${basedir}\test-output"/>-->
<property name="suite" value="${src}\TestSuite"/>
<property name="suite.xml" value="testSuite.xml"/>
<!--Debby-->
<tstamp>
<format property="nowstamp" pattern="yyyyMMdd-HHmmss" locale="en"/>
</tstamp>
<path id="classpath">
<pathelement location="."/>
<pathelement location="${bin}" />
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
</path>
<path id="sourcepath">
<pathelement location="./src" />
</path>
<!--Debby-->
<target name="clean">
<delete dir="${bin}" failonerror="No"/>
<mkdir dir="${bin}"/>
</target>
<target name="build" depends="clean">
<javac srcdir="${src}" destdir="${bin}" sourcepathref="sourcepath" debug="on" includeAntRuntime="false">
<classpath refid="classpath"/>
</javac>
</target>
<taskdef resource="testngtasks" classpath="${lib}\testng-6.8.jar"/>
<target name="run" depends="build">
<testng classpathref="classpath" outputdir="${report}/TestNG/${nowstamp}" >
<xmlfileset dir="${suite}" includes="${suite.xml}" />
</testng>
</target>
</project>