summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-08-24 20:37:10 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-08-24 20:37:10 +0000
commitd8f3d385b9ce3f5aa68400d18d86a106b38a4b20 (patch)
tree3b942930d9442346a3f2e83470761efe6bab3186 /sca-java-1.x
parent426707cccbb6e1bdf3dec337ed41d340edc7c4d1 (diff)
Merge revision 959617 from trunk into the 1.6.1 branch
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@988713 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x')
-rw-r--r--sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/pom.xml14
-rw-r--r--sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/src/test/java/util/OSGiTestUtil.java9
2 files changed, 23 insertions, 0 deletions
diff --git a/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/pom.xml b/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/pom.xml
index fd16af6962..c19ea167d0 100644
--- a/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/pom.xml
+++ b/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/pom.xml
@@ -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>
diff --git a/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/src/test/java/util/OSGiTestUtil.java b/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/src/test/java/util/OSGiTestUtil.java
index 7b95c12038..4639d7a692 100644
--- a/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/src/test/java/util/OSGiTestUtil.java
+++ b/sca-java-1.x/branches/sca-java-1.6.1/itest/osgi-implementation/src/test/java/util/OSGiTestUtil.java
@@ -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 {