Author: nash
Date: Tue Aug 24 20:37:10 2010
New Revision: 988713

URL: http://svn.apache.org/viewvc?rev=988713&view=rev
Log:
Merge revision 959617 from trunk into the 1.6.1 branch

Modified:
    
tuscany/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/pom.xml
    
tuscany/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/src/test/java/util/OSGiTestUtil.java

Modified: 
tuscany/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/pom.xml
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/pom.xml?rev=988713&r1=988712&r2=988713&view=diff
==============================================================================
--- 
tuscany/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/pom.xml 
(original)
+++ 
tuscany/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/pom.xml 
Tue Aug 24 20:37:10 2010
@@ -145,6 +145,12 @@
         </dependency>
 
         <dependency>
+            <groupId>commons-io</groupId>
+            <artifactId>commons-io</artifactId>
+            <version>1.4</version>
+        </dependency>
+
+        <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.5</version>
@@ -198,6 +204,14 @@
 
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-surefire-plugin</artifactId>
+                    <configuration>
+                        <forkMode>pertest</forkMode>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-antrun-plugin</artifactId>
                     <version>1.1</version>
 

Modified: 
tuscany/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/src/test/java/util/OSGiTestUtil.java
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/src/test/java/util/OSGiTestUtil.java?rev=988713&r1=988712&r2=988713&view=diff
==============================================================================
--- 
tuscany/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/src/test/java/util/OSGiTestUtil.java
 (original)
+++ 
tuscany/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/src/test/java/util/OSGiTestUtil.java
 Tue Aug 24 20:37:10 2010
@@ -18,6 +18,9 @@
  */
 package util;
 
+import java.io.File;
+import org.apache.commons.io.FileUtils;
+
 import org.apache.tuscany.sca.osgi.runtime.OSGiRuntime;
 
 
@@ -37,6 +40,12 @@ public  class OSGiTestUtil  {
         String felixConfigFileName = 
"file:target/test-classes/osgi/felix/felix.config.properties";
         
         System.setProperty("felix.config.properties", felixConfigFileName);
+
+               // delete any cached OSGI bundles left over from previous test 
executions
+               File felixCache = new File("target/.felix");
+               if (felixCache.exists()) {
+                   FileUtils.cleanDirectory(felixCache);
+               }
         
         try {
             


Reply via email to