-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·50 lines (43 loc) · 1.84 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
<project name="Selenium Grid Box Agent" default="package-standalone" basedir=".">
<description>Selenium Grid Box 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}/common-build.xml" />
<path id="compile.classpath">
<fileset dir="${rootdir}/lib">
<include name="jetty/jetty-6.0.2.jar"/>
<include name="jetty/jetty-util-6.0.2.jar"/>
<include name="jetty/servlet-api-2.5-6.1.5.jar"/>
</fileset>
<pathelement path="${java.class.path}/"/>
</path>
<path id="runtime.classpath">
<fileset dir="${rootdir}/lib">
<include name="jetty/jetty-6.0.2.jar"/>
<include name="jetty/jetty-util-6.0.2.jar"/>
<include name="jetty/servlet-api-2.5-6.1.5.jar"/>
</fileset>
<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="br.com.caelum.selenium.grid.AgentServer">
<dependencies>
<zipfileset src="${rootdir}/lib/jetty/jetty-6.0.2.jar"/>
<zipfileset src="${rootdir}/lib/jetty/jetty-util-6.0.2.jar"/>
<zipfileset src="${rootdir}/lib/jetty/servlet-api-2.5-6.1.5.jar"/>
</dependencies>
</package-standalone-jar>
</target>
<target name="run" description="Launch a remote control">
<java classpathref="runtime.classpath"
classname="br.com.caelum.selenium.grid.AgentServer"
fork="true"
failonerror="true">
</java>
</target>
</project>