forked from bcotton/selenium-grid
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathbuild.xml
executable file
·70 lines (59 loc) · 2.92 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
<project name="Selenium Grid Agent" default="package-standalone" basedir=".">
<description>Selenium Grid Agent</description>
<property name="rootdir" value="${basedir}/.."/>
<property file="${rootdir}/project.properties"/>
<property name="name" value="Selenium Grid Agent"/>
<property name="artifact" value="selenium-grid-agent"/>
<property name="version" value="SNAPSHOT"/>
<property name="selenium.version" value="Set Me"/>
<import file="${rootdir}/lib/build/common-build.xml" />
<path id="compile.classpath">
<fileset dir="${rootdir}/vendor">
<include name="servlet-api-2.5-20081211.jar"/>
<include name="commons-logging-1.1.1.jar"/>
<include name="cobertura-1.9.jar"/>
<include name="log4j-1.2.9.jar"/>
<include name="asm-2.2.1.jar"/>
<include name="asm-tree-2.2.1.jar"/>
<include name="jakarta-oro-2.0.8.jar"/>
</fileset>
<pathelement location="${rootdir}/infrastructure/core/target/classes"/>
<pathelement location="${rootdir}/infrastructure/webserver/target/classes"/>
<pathelement path="${java.class.path}/"/>
</path>
<path id="runtime.classpath">
<fileset dir="${rootdir}/vendor">
<include name="jetty-6.1.24.jar"/>
<include name="jetty-util-6.1.24.jar"/>
<include name="servlet-api-2.5-20081211.jar"/>
<include name="commons-httpclient-3.1.jar"/>
<include name="commons-codec-1.4.jar"/>
<include name="commons-logging-1.1.1.jar"/>
</fileset>
<pathelement location="${rootdir}/infrastructure/core/target/classes"/>
<pathelement location="${rootdir}/infrastructure/webserver/target/classes"/>
<pathelement location="${build.output}"/>
<pathelement path="${java.class.path}/"/>
</path>
<target name="package-standalone" depends="package" description="Package as a jar including all dependencies">
<package-standalone-jar main-class="com.thoughtworks.selenium.grid.agent.AgentServer">
<dependencies>
<zipfileset src="${rootdir}/infrastructure/core/target/dist/lib/selenium-grid-core-${version}.jar"/>
<zipfileset src="${rootdir}/infrastructure/webserver/target/dist/lib/selenium-grid-webserver-${version}.jar"/>
<zipfileset src="${rootdir}/vendor/jetty-6.1.24.jar"/>
<zipfileset src="${rootdir}/vendor/jetty-util-6.1.24.jar"/>
<zipfileset src="${rootdir}/vendor/servlet-api-2.5-20081211.jar"/>
<zipfileset src="${rootdir}/vendor/commons-httpclient-3.1.jar"/>
<zipfileset src="${rootdir}/vendor/commons-codec-1.4.jar"/>
<zipfileset src="${rootdir}/vendor/commons-logging-1.1.1.jar"/>
</dependencies>
</package-standalone-jar>
</target>
<target name="run" description="Launch a remote control">
<java classpathref="runtime.classpath"
classname="com.thoughtworks.selenium.grid.agent.AgentServer"
fork="true"
failonerror="true">
</java>
</target>
</project>