@@ -60,11 +60,6 @@ limitations under the License.
60
60
<pathelement path =" ${ build.main.dir } " />
61
61
<pathelement path =" ${ build.test.dir } " />
62
62
</path >
63
- <path id =" artifact.classpath" >
64
- <pathelement path =" ${ build.test.dir } " />
65
- <pathelement location =" lib/testng-6.3.1.jar" />
66
- <pathelement location =" ${ artifact.name } " />
67
- </path >
68
63
69
64
<!-- ******************************************************************* -->
70
65
<!-- Tasks definition -->
@@ -289,8 +284,9 @@ limitations under the License.
289
284
</javac >
290
285
</target >
291
286
292
- <target name =" test" depends =" test-compile" >
287
+ <target name =" test" depends =" test-compile, test-nodeps " / >
293
288
289
+ <target name =" test-nodeps" >
294
290
<testng classpathref =" ${ test.classpath } " outputdir =" ${ test.dir } " listeners =" com.mongodb.util.TestNGListener" haltonfailure =" false" verbose =" 1" >
295
291
<jvmarg value =" -Xmx512M" />
296
292
<jvmarg value =" -ea" />
@@ -300,36 +296,6 @@ limitations under the License.
300
296
</testng >
301
297
</target >
302
298
303
- <target name =" test-artifact-compile" depends =" init" >
304
- <property name =" myclasspath" refid =" artifact.classpath" />
305
- <!-- Emit the property to the ant console -->
306
- <echo message =" Classpath = ${ myclasspath } " />
307
-
308
- <javac
309
- srcdir =" src/test"
310
- destdir =" ${ build.test.dir } "
311
- optimize =" off"
312
- deprecation =" off"
313
- source =" ${ build.conf.javac.source } "
314
- encoding =" ISO-8859-1"
315
- fork =" true"
316
- debug =" on"
317
- includeantruntime =" false" >
318
- <classpath refid =" artifact.classpath" />
319
- <compilerarg value =" -Xlint:all,-rawtypes" />
320
- </javac >
321
- </target >
322
-
323
- <target name =" test-artifact" depends =" test-artifact-compile" >
324
-
325
- <testng classpathref =" artifact.classpath" outputdir =" ${ test.dir } " listeners =" com.mongodb.util.TestNGListener" haltonfailure =" false" verbose =" 1" >
326
- <jvmarg value =" -Xmx512M" />
327
- <jvmarg value =" -ea" />
328
- <jvmarg value =" -Dcom.mongodb.slaveAcceptableLatencyMS=${ test.com.mongodb.slaveAcceptableLatencyMS } " />
329
- <classfileset dir =" ${ build.test.dir } " includes =" **/${ test.classes } .class" />
330
- </testng >
331
- </target >
332
-
333
299
<!-- ******************************************************************* -->
334
300
<!-- The coverage targets -->
335
301
<!-- ******************************************************************* -->
0 commit comments