-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
128 lines (93 loc) · 3.64 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?xml version="1.0" ?>
<project name="JenkinsDemo" default="war">
<path id="classpath.test">
<fileset dir="lib">
<include name="SeleniumJars/*.jar" />
</fileset>
<pathelement location="test" />
<pathelement location="src" />
<pathelement location="/Users/pavang/Documents/workspace/JenkinsDemo/lib/testng-6.8.jar"/>
<pathelement location="/Users/pavang/Documents/workspace/JenkinsDemo/lib"/>
<pathelement location="/Users/pavang/Desktop/apache-tomcat-7.0.42/lib/servlet-api.jar"/>
<pathelement location="/Users/pavang/Documents/workspace/JenkinsDemo/build/classes"/>
</path>
<taskdef name="testng" classname="org.testng.TestNGAntTask">
<classpath>
<pathelement location="/Users/pavang/Documents/workspace/JenkinsDemo/lib/testng-6.8.jar"/>
</classpath>
</taskdef>
<!-- _________________________________________________________________________________ -->
<target name="init">
<mkdir dir="build/classes"/>
<mkdir dir="dist" />
</target>
<target name="compile" depends="init" >
<javac destdir="build/classes" debug="true" srcdir="src">
<classpath refid="classpath.test"/>
</javac>
<javac destdir="build/classes" debug="true" srcdir="test">
<classpath refid="classpath.test"/>
</javac>
<javac destdir="build/classes" debug="true" srcdir="guiTest">
<classpath refid="classpath.test"/>
</javac>
</target>
<target name="war" depends="compile">
<war destfile="dist/JenkinsDemo.war" needxmlfile='false'>
<fileset dir="WebContent"/>
<lib dir="WebContent/WEB-INF/lib"/>
<classes dir="build/classes"/>
</war>
</target>
<target name="clean">
<delete dir="dist" />
<delete dir="build" />
</target>
<target name="runTest" depends="war">
<testng classpathref="classpath.test">
<xmlfileset dir="." includes="testng.xml"/>
</testng>
</target>
</project>
<!--
<path id="testNGRun">
<pathelement location="/Users/pavang/Documents/workspace/JenkinsDemo/testng-6.8.jar"/>
<pathelement location="/Users/pavang/Documents/workspace/JenkinsDemo/build" />
</path>
<taskdef name="testng" classpathref="testNGRun" classname="org.testng.TestNGAntTask" />
<taskdef name="testng" classname="org.testng.TestNGAntTask">
<classpath>
<pathelement location="lib/testng/testng-5.14.7.jar"/>
</classpath>
</taskdef>
<taskdef name="testngtasks" resource="testngtasks" >
<classpath>
<pathelement path="/Users/
pavang/Documents/workspace/JenkinsDemo/testng.jar"/>
</classpath>
</taskdef>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
<path id="classpath.test">
<pathelement path="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/"/>
<pathelement path="${toString:testng.classpath}" />
<pathelement path="/Users/pavang/Documents/workspace/JenkinsDemo/testng.jar"/>
<pathelement path="${classes.dir}"/>
</path>
<taskdef resource="testngtasks" classpath="testng.jar"/>
<pathelement location="/Users/pavang/Downloads/jcommander-1.13.jar"/>
<taskdef name="jcommander" classname="com.beust.jcommander.ParameterException">
<classpath>
<pathelement location="/Users/pavang/Documents/workspace/JenkinsDemo/lib/jcommander.jar"/>
</classpath>
</taskdef>
<path refid="classpath.base" />
<emma enabled="${emma.enabled}" >
<instr instrpathref="${out.dir}/classes"
outdir="${out.dir}/classes-instrumented"
merge="yes"
filter="${emma.filter}"
/>
</emma>
-->