diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-04-16 00:49:40 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-04-16 00:49:40 +0000 |
commit | 66170ac95ea95202347475be3a303a82500194a8 (patch) | |
tree | b68c5061412e834bca43eaa41deb556fcb2d579b /maven-plugins/trunk/maven-osgi-junit | |
parent | d33fae3a8cf97fee000da2cd7c510bae9158ee9d (diff) |
Remove appliation classpath from poluting the forked tests in OSGi
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@765438 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'maven-plugins/trunk/maven-osgi-junit')
-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()); |