-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
65 lines (57 loc) · 1.77 KB
/
build.xml
File metadata and controls
65 lines (57 loc) · 1.77 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<project xmlns:ant="antlib:org.apache.ant"
name="Appium Tuttorial" default="main" basedir=".">
<description>
Running jUnit Appium Test
</description>
<!-- Project Structure -->
<property name="src.dir" location="src" />
<property name="bin.dir" location="bin" />
<property name="lib.dir" location="lib" />
<property name="report.dir" location="report" />
<!-- Adding lib Jar's from ${lib.dir} -->
<target name="setClassPath">
<path id="classpath_jars">
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
</target>
<!-- Compile Java source from ${src.dir} -->
<target name="compile" depends="clean, init, setClassPath" description="compile source code">
<javac destdir="${bin.dir}" debug="true" includeantruntime="false" >
<classpath refid="classpath_jars"/>
<src path="${src.dir}" />
</javac>
</target>
<!-- Run jUnit -->
<target name="junit" depends="compile">
<junit printsummary="yes" haltonfailure="no">
<classpath>
<pathelement location="${bin.dir}" />
<pathelement location="${lib.dir}" />
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</classpath>
<formatter type="xml" />
<batchtest>
<fileset dir="${src.dir}">
<include name="**/*Test*" />
</fileset>
</batchtest>
<formatter type="brief" usefile="false"/>
</junit>
</target>
<!-- Create folders -->
<target name="init">
<mkdir dir="${src.dir}" />
<mkdir dir="${bin.dir}" />
<mkdir dir="${report.dir}" />
</target>
<!-- Delete folders -->
<target name="clean" description="clean up">
<delete dir="${bin.dir}" />
<delete dir="${report.dir}" />
</target>
<target name="main" depends="junit" />
</project>