|
9 | 9 |
|
10 | 10 | <property name="build.dir" location="bin" />
|
11 | 11 |
|
12 |
| - <property name="dist.dir" location="dist" /> |
13 |
| - |
14 | 12 | <target name="init">
|
15 | 13 | <tstamp />
|
16 | 14 | <mkdir dir="${build.dir}" />
|
|
28 | 26 | </javac>
|
29 | 27 | </target>
|
30 | 28 |
|
31 |
| - <target name="dist" depends="compile" description="create a JAR for the tests"> |
32 |
| - <mkdir dir="${dist.dir}" /> |
33 |
| - |
34 |
| - <jar jarfile="${dist.dir}/${projectName}-${DSTAMP}.jar" basedir="${build.dir}" > |
35 |
| - <manifest> |
36 |
| - <attribute name="Main-Class" value="com.browserstack.TestNGParallel" /> |
37 |
| - </manifest> |
38 |
| - </jar> |
39 |
| - </target> |
40 |
| - |
41 | 29 | <taskdef name="testng" classpathref="build.classpath" classname="org.testng.TestNGAntTask" />
|
42 | 30 |
|
43 |
| - <target name="test-parallel" depends="dist" description="run the tests on BrowserStack"> |
| 31 | + <target name="test-parallel" depends="compile" description="run the tests on BrowserStack"> |
44 | 32 | <testng classpathref="build.classpath" verbose="10" >
|
45 | 33 | <classpath location="bin" />
|
46 | 34 | <xmlfileset dir="." includes="testng.xml"/>
|
47 | 35 | </testng>
|
48 | 36 | </target>
|
49 | 37 |
|
50 |
| - <target name="test-series" depends="dist" description="run the tests on BrowserStack"> |
| 38 | + <target name="test-series" depends="compile" description="run the tests on BrowserStack"> |
51 | 39 | <testng classpathref="build.classpath" verbose="10" groups="series_test">
|
52 | 40 | <classpath location="bin" />
|
53 | 41 | <classfileset dir="bin" includes="**/**/TestNGSample.class"/>
|
|
56 | 44 |
|
57 | 45 | <target name="clean" description="clean up">
|
58 | 46 | <delete dir="${build.dir}" />
|
59 |
| - <delete dir="${dist.dir}" /> |
60 | 47 | </target>
|
61 | 48 |
|
62 |
| - <target name="main" depends="clean, compile, dist, test-parallel" /> |
| 49 | + <target name="main" depends="clean, compile, test-parallel" /> |
63 | 50 |
|
64 | 51 | </project>
|
0 commit comments