@@ -272,28 +272,37 @@ TODO:
272
272
</artifact : dependencies >
273
273
274
274
<!-- JUnit -->
275
- <property name =" junit.version" value =" 4.10 " />
275
+ <property name =" junit.version" value =" 4.11 " />
276
276
<artifact : dependencies pathId =" junit.classpath" filesetId =" junit.fileset" >
277
277
<dependency groupId =" junit" artifactId =" junit" version =" ${ junit.version } " />
278
278
</artifact : dependencies >
279
279
<copy-deps project =" junit" />
280
280
281
281
<!-- Pax runner -->
282
- <property name =" pax.exam.version" value =" 2.6.0" />
282
+ <property name =" pax.exam.version" value =" 3.5.0" /><!-- Last version which supports Java 6 -->
283
+ <property name =" osgi.felix.version" value =" 4.4.0" />
284
+ <property name =" osgi.equinox.version" value =" 3.7.1" />
283
285
<artifact : dependencies pathId =" pax.exam.classpath" filesetId =" pax.exam.fileset" >
284
- <dependency groupId =" org.ops4j.pax.exam" artifactId =" pax-exam-container-native" version =" ${ pax.exam.version } " />
286
+ <dependency groupId =" org.ops4j.pax.exam" artifactId =" pax-exam-container-native" version =" ${ pax.exam.version } " >
287
+ <exclusion groupId =" org.osgi" artifactId =" org.osgi.core" /><!-- Avoid dragging in a dependency which requires Java >6 -->
288
+ </dependency >
285
289
<dependency groupId =" org.ops4j.pax.exam" artifactId =" pax-exam-junit4" version =" ${ pax.exam.version } " />
286
290
<dependency groupId =" org.ops4j.pax.exam" artifactId =" pax-exam-link-assembly" version =" ${ pax.exam.version } " />
287
- <!-- upgraded to 1.6.0 to get fix for https://ops4j1.jira.com/browse/PAXURL-217
288
- https://ops4j1.jira.com/browse/PAXURL-138 is still unresolved... -->
289
- <dependency groupId =" org.ops4j.pax.url" artifactId =" pax-url-aether" version =" 1.6.0" />
290
- <dependency groupId =" org.ops4j.pax.swissbox" artifactId =" pax-swissbox-framework" version =" 1.5.1" />
291
- <dependency groupId =" ch.qos.logback" artifactId =" logback-core" version =" 0.9.20" />
292
- <dependency groupId =" ch.qos.logback" artifactId =" logback-classic" version =" 0.9.20" />
291
+ <dependency groupId =" org.ops4j.pax.url" artifactId =" pax-url-aether" version =" 2.2.0" />
292
+ <dependency groupId =" org.ops4j.pax.swissbox" artifactId =" pax-swissbox-tracker" version =" 1.8.0" />
293
+ <dependency groupId =" ch.qos.logback" artifactId =" logback-core" version =" 1.1.2" />
294
+ <dependency groupId =" ch.qos.logback" artifactId =" logback-classic" version =" 1.1.2" />
293
295
<dependency groupId =" junit" artifactId =" junit" version =" ${ junit.version } " />
294
- <dependency groupId =" org.apache.felix" artifactId =" org.apache.felix.framework" version =" 3.2.2" />
295
296
</artifact : dependencies >
297
+ <copy-deps project =" pax.exam" />
296
298
299
+ <artifact : dependencies pathId =" osgi.framework.felix" >
300
+ <dependency groupId =" org.apache.felix" artifactId =" org.apache.felix.framework" version =" ${ osgi.felix.version } " />
301
+ </artifact : dependencies >
302
+
303
+ <artifact : dependencies pathId =" osgi.framework.equinox" >
304
+ <dependency groupId =" org.eclipse.osgi" artifactId =" org.eclipse.osgi" version =" ${ osgi.equinox.version } " />
305
+ </artifact : dependencies >
297
306
298
307
<artifact : remoteRepository id =" sonatype-release" url =" https://oss.sonatype.org/content/repositories/releases" />
299
308
<artifact : remoteRepository id =" extra-repo" url =" ${ extra.repo.url } " />
@@ -840,8 +849,7 @@ TODO:
840
849
-->
841
850
842
851
<path id =" pack.reflect.files" > <fileset dir =" ${ build-quick.dir } /classes/reflect" /> </path >
843
- <path id =" pack.scalap.files" > <fileset dir =" ${ build-quick.dir } /classes/scalap" />
844
- <fileset file =" ${ src.dir } /scalap/decoder.properties" /> </path >
852
+ <path id =" pack.scalap.files" > <fileset dir =" ${ build-quick.dir } /classes/scalap" /> </path >
845
853
846
854
<path id =" pack.partest-extras.files" > <fileset dir =" ${ build-quick.dir } /classes/partest-extras" /> </path >
847
855
<path id =" pack.partest-javaagent.files" > <fileset dir =" ${ build-quick.dir } /classes/partest-javaagent" /> </path >
@@ -984,6 +992,16 @@ TODO:
984
992
<path refid =" forkjoin.classpath" />
985
993
</path >
986
994
995
+ <path id =" test.osgi.compiler.build.path.felix" >
996
+ <path refid =" test.osgi.compiler.build.path" />
997
+ <path refid =" osgi.framework.felix" />
998
+ </path >
999
+
1000
+ <path id =" test.osgi.compiler.build.path.equinox" >
1001
+ <path refid =" test.osgi.compiler.build.path" />
1002
+ <path refid =" osgi.framework.equinox" />
1003
+ </path >
1004
+
987
1005
<path id =" test.positions.sub.build.path" path =" ${ build-quick.dir } /classes/library" />
988
1006
989
1007
<!-- TODO: consolidate *.includes -->
@@ -1351,22 +1369,36 @@ TODO:
1351
1369
srcdir =" ${ test.osgi.src } "
1352
1370
jvmargs =" ${ scalacfork.jvmargs } " >
1353
1371
<include name =" **/*.scala" />
1354
- <compilationpath refid =" test.osgi.compiler.build.path" />
1372
+ <compilationpath refid =" test.osgi.compiler.build.path.felix " />
1355
1373
</scalacfork >
1356
1374
<touch file =" ${ build-osgi.dir } /test-compile.complete" verbose =" no" />
1357
1375
<stopwatch name =" test.osgi.compiler.timer" action =" total" />
1358
1376
</target >
1359
1377
1360
1378
<target name =" test.osgi" depends =" test.osgi.comp" >
1361
- <if ><isset property =" has.java8 " /><then >
1362
- <echo message =" Skipping OSGi JUnit tests on Java 8. See SI-8642 " />
1379
+ <if ><isset property =" test.osgi.skip " /><then >
1380
+ <echo message =" Skipping OSGi JUnit tests" />
1363
1381
</then ><else >
1364
1382
<echo message =" Running OSGi JUnit tests. Output in ${ build-osgi.dir } " />
1365
1383
<stopwatch name =" test.osgi.timer" />
1366
1384
<mkdir dir =" ${ test.osgi.classes } " />
1367
1385
1386
+ <echo message =" Test pass 1 of 2 using Apache Felix ${ osgi.felix.version } " />
1387
+ <junit fork =" yes" haltonfailure =" yes" >
1388
+ <classpath refid =" test.osgi.compiler.build.path.felix" />
1389
+ <jvmarg value =" -Duser.home=${ user.home } " />
1390
+ <batchtest fork =" yes" todir =" ${ build-osgi.dir } " >
1391
+ <fileset dir =" ${ test.osgi.classes } " >
1392
+ <include name =" **/*Test.class" />
1393
+ </fileset >
1394
+ </batchtest >
1395
+ <formatter type =" xml" />
1396
+ </junit >
1397
+
1398
+ <echo message =" Test pass 2 of 2 using Eclipse Equinox ${ osgi.equinox.version } " />
1368
1399
<junit fork =" yes" haltonfailure =" yes" >
1369
- <classpath refid =" test.osgi.compiler.build.path" />
1400
+ <classpath refid =" test.osgi.compiler.build.path.equinox" />
1401
+ <jvmarg value =" -Duser.home=${ user.home } " />
1370
1402
<batchtest fork =" yes" todir =" ${ build-osgi.dir } " >
1371
1403
<fileset dir =" ${ test.osgi.classes } " >
1372
1404
<include name =" **/*Test.class" />
@@ -1437,7 +1469,7 @@ TODO:
1437
1469
<stopwatch name =" test.junit.compiler.timer" action =" total" />
1438
1470
</target >
1439
1471
1440
- <target name =" test.junit" depends =" test.junit.comp" >
1472
+ <target name =" test.junit" depends =" test.junit.comp, test.junit.init " >
1441
1473
<stopwatch name =" test.junit.timer" />
1442
1474
<mkdir dir =" ${ test.junit.classes } " />
1443
1475
<echo message =" Note: details of failed tests will be output to ${ build-junit.dir } " />
0 commit comments