Fix issue with unit tests when using Maven 2.1.0
authorMathieu Baudier <mbaudier@argeo.org>
Sun, 26 Jul 2009 11:37:36 +0000 (11:37 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Sun, 26 Jul 2009 11:37:36 +0000 (11:37 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@2762 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

runtime/org.argeo.slc.support.equinox/pom.xml
runtime/org.argeo.slc.support.equinox/src/test/java/org/argeo/slc/osgi/test/HelloTest.java

index f51258eea08b55e56c81376223a1d762c8b95955..9fed73946acb57ba9b4c42260f9d7a8f289eaeca 100644 (file)
                                        </archive> </configuration> </execution> </executions>
                                -->
                        </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-surefire-plugin</artifactId>
+                               <configuration>
+                                       <useSystemClassLoader>false</useSystemClassLoader>
+                               </configuration>
+                       </plugin>
                        <plugin>
                                <groupId>org.apache.felix</groupId>
                                <artifactId>maven-bundle-plugin</artifactId>
index 02a7bd3d03cb67856f2d5263a556e4ca37d6451e..99a3c6a9d09e58024db1b1e076a615a066fbd360 100644 (file)
@@ -12,16 +12,19 @@ public class HelloTest extends AbstractOsgiRuntimeTestCase {
        }
 
        protected void installBundles() throws Exception {
+//             System.out.println("java.class.path="
+//                             + System.getProperty("java.class.path"));
+
                osgiBoot.installUrls(osgiBoot.getLocationsUrls(
                                OsgiBoot.DEFAULT_BASE_URL, System
                                                .getProperty("java.class.path")));
                osgiBoot.installUrls(osgiBoot.getBundlesUrls(OsgiBoot.DEFAULT_BASE_URL,
                                "src/test/bundles;in=*"));
 
-//             Map<String, String> sysProps = new TreeMap(System.getProperties());
-//             for (String key : sysProps.keySet()) {
-//                     System.out.println(key + "=" + sysProps.get(key));
-//             }
+               // Map<String, String> sysProps = new TreeMap(System.getProperties());
+               // for (String key : sysProps.keySet()) {
+               // System.out.println(key + "=" + sysProps.get(key));
+               // }
        }
 
        protected List<String> getBundlesToStart() {