summaryrefslogtreecommitdiffstats
path: root/maven-plugins/trunk/maven-osgi-junit/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'maven-plugins/trunk/maven-osgi-junit/src/main/java/org')
-rw-r--r--maven-plugins/trunk/maven-osgi-junit/src/main/java/org/apache/tuscany/maven/plugin/surefire/OSGiSurefireBooter.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/maven-plugins/trunk/maven-osgi-junit/src/main/java/org/apache/tuscany/maven/plugin/surefire/OSGiSurefireBooter.java b/maven-plugins/trunk/maven-osgi-junit/src/main/java/org/apache/tuscany/maven/plugin/surefire/OSGiSurefireBooter.java
index 3b6b83429d..8efd5cc4cc 100644
--- a/maven-plugins/trunk/maven-osgi-junit/src/main/java/org/apache/tuscany/maven/plugin/surefire/OSGiSurefireBooter.java
+++ b/maven-plugins/trunk/maven-osgi-junit/src/main/java/org/apache/tuscany/maven/plugin/surefire/OSGiSurefireBooter.java
@@ -573,13 +573,18 @@ public class OSGiSurefireBooter {
System.out.println("sbcp: " + surefireBootClassPathUrls);
*/
- List bootClasspath = new ArrayList(surefireBootClassPathUrls.size() + classPathUrls.size());
+ List bootClasspath = new ArrayList(surefireBootClassPathUrls.size());
bootClasspath.addAll(surefireBootClassPathUrls);
+ /**
+ * For OSGi, we don't want to polute the system classpath
+ */
+ /*
if (useSystemClassLoader()) {
bootClasspath.addAll(classPathUrls);
}
+ */
Commandline cli =
forkConfiguration.createCommandLine(bootClasspath, useManifestOnlyJar());