-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.xml
68 lines (58 loc) · 2.12 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
check_selenium build script.
-->
<project name="check_selenium" default="dist" basedir=".">
<property name="BASE" location="."/>
<property name="src" location="${BASE}/src"/>
<property name="bin" location="${BASE}/bin"/>
<property name="lib" location="${BASE}/lib"/>
<property name="dist" location="${BASE}/dist"/>
<path id="compile.classpath">
<fileset dir="${lib}/">
<include name="*.jar"/>
</fileset>
</path>
<target name="compile" description="compile the source">
<mkdir dir="bin"/>
<javac srcdir="${src}" destdir="${bin}">
<classpath refid="compile.classpath" />
</javac>
</target>
<target name="dist" depends="jar">
<copy todir="${dist}">
<fileset dir="${bin}">
<include name="check_selenium*" />
</fileset>
<fileset dir="${BASE}">
<include name="README" />
<include name="COPYING" />
</fileset>
</copy>
<copy todir="${dist}/lib">
<fileset dir="${lib}"/>
</copy>
<tar destfile="${basedir}/check_selenium.tar.gz" basedir="${dist}" compression="gzip"/>
</target>
<target name="dist-sel-server-linux">
<copy todir="${dist}/selenium-server-linux">
<fileset dir="${bin}/selenium-server-linux"/>
</copy>
<tar destfile="${basedir}/selenium-server-linux.tar.gz" basedir="${dist}/selenium-server-linux" compression="gzip"/>
</target>
<target name="dist-sel-server-win">
<copy todir="${dist}/selenium-server-win">
<fileset dir="${bin}/selenium-server-win"/>
</copy>
<tar destfile="${basedir}/selenium-server-win.tar.gz" basedir="${dist}/selenium-server-win" compression="gzip"/>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist}/lib" />
<jar destfile="${dist}/lib/selenium-example-tests.jar" basedir="${bin}" includes="com/**" excludes="info/**" />
<jar destfile="${dist}/lib/check-selenium.jar" basedir="${bin}" includes="info/**" excludes="com/**" >
<manifest>
<attribute name="Main-Class" value="info.devopsabyss.CallSeleniumTest"/>
</manifest>
</jar>
</target>
</project>