Skip to content

Instantly share code, notes, and snippets.

@ChristophGr
Created May 27, 2011 09:52
Show Gist options
  • Select an option

  • Save ChristophGr/994967 to your computer and use it in GitHub Desktop.

Select an option

Save ChristophGr/994967 to your computer and use it in GitHub Desktop.
diff --git a/itests/src/test/java/org/openengsb/itests/util/AbstractExamTestHelper.java b/itests/src/test/java/org/openengsb/itests/util/AbstractExamTestHelper.java
index 0c05026..412dc34 100644
--- a/itests/src/test/java/org/openengsb/itests/util/AbstractExamTestHelper.java
+++ b/itests/src/test/java/org/openengsb/itests/util/AbstractExamTestHelper.java
@@ -197,6 +197,7 @@ public abstract class AbstractExamTestHelper extends AbstractIntegrationTest {
if (DEBUG) {
baseOptions = combine(baseOptions, Helper.activateDebugging(Integer.toString(DEBUG_PORT)));
}
+ String targetpath = new File("target").getAbsolutePath();
return combine(
baseOptions,
Helper.loadKarafStandardFeatures("config", "management"),
@@ -214,6 +215,9 @@ public abstract class AbstractExamTestHelper extends AbstractIntegrationTest {
workingDirectory(getWorkingDirectory()),
vmOption("-Dorg.osgi.framework.system.packages.extra=sun.reflect"),
vmOption("-Dorg.osgi.service.http.port=" + WEBUI_PORT), waitForFrameworkStartup(),
+ vmOption("-Dkaraf.data=" + targetpath + "/karaf.data"),
+ vmOption("-Dkaraf.home=" + targetpath + "/karaf.home"),
+ vmOption("-Dkaraf.base=" + targetpath + "/karaf.base"),
mavenBundle(maven().groupId("org.openengsb.wrapped").artifactId("net.sourceforge.htmlunit-all")
.versionAsInProject()), felix());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment