diff options
Diffstat (limited to 'maven-plugins')
-rw-r--r-- | maven-plugins/trunk/maven-osgi-junit/src/main/java/org/apache/tuscany/maven/plugin/surefire/OSGiSurefireBooter.java | 7 |
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()); |