-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #174 from jamezp/WFARQ-74
[WFARQ-74] Switch around the abstracted container configurations so t…
- Loading branch information
Showing
4 changed files
with
29 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,21 +23,15 @@ | |
* | ||
* @author <a href="mailto:[email protected]">Andrew Lee Rubinger</a> | ||
*/ | ||
public class DistributionContainerConfiguration extends CommonContainerConfiguration { | ||
public class DistributionContainerConfiguration extends CommonManagedContainerConfiguration { | ||
|
||
private String jbossHome = System.getenv("JBOSS_HOME"); | ||
|
||
private String javaHome = System.getenv("JAVA_HOME"); | ||
|
||
private String modulePath = System.getProperty("module.path"); | ||
|
||
private String bundlePath = System.getProperty("bundle.path"); | ||
|
||
public DistributionContainerConfiguration() { | ||
// if no javaHome is set use java.home of already running jvm | ||
if (javaHome == null || javaHome.isEmpty()) { | ||
javaHome = System.getProperty("java.home"); | ||
} | ||
// if no jbossHome is set use jboss.home of already running jvm | ||
if (jbossHome == null || jbossHome.isEmpty()) { | ||
jbossHome = System.getProperty("jboss.home"); | ||
|
@@ -59,21 +53,6 @@ public void setJbossHome(String jbossHome) { | |
this.jbossHome = jbossHome; | ||
} | ||
|
||
/** | ||
* @return the javaHome | ||
*/ | ||
public String getJavaHome() { | ||
return javaHome; | ||
} | ||
|
||
/** | ||
* @param javaHome | ||
* the javaHome to set | ||
*/ | ||
public void setJavaHome(String javaHome) { | ||
this.javaHome = javaHome; | ||
} | ||
|
||
public String getModulePath() { | ||
return modulePath; | ||
} | ||
|
@@ -97,7 +76,5 @@ public void validate() throws ConfigurationException { | |
super.validate(); | ||
if (jbossHome != null) | ||
Validate.configurationDirectoryExists(jbossHome, "jbossHome '" + jbossHome + "' must exist"); | ||
if (javaHome != null) | ||
Validate.configurationDirectoryExists(javaHome, "javaHome '" + javaHome + "' must exist"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,15 @@ | |
*/ | ||
package org.jboss.as.arquillian.container.managed; | ||
|
||
import org.jboss.as.arquillian.container.CommonManagedContainerConfiguration; | ||
import org.jboss.as.arquillian.container.DistributionContainerConfiguration; | ||
|
||
/** | ||
* The managed container configuration | ||
* | ||
* @author <a href="mailto:[email protected]">Aslak Knutsen</a> | ||
* @author [email protected] | ||
*/ | ||
public class ManagedContainerConfiguration extends CommonManagedContainerConfiguration { | ||
public class ManagedContainerConfiguration extends DistributionContainerConfiguration { | ||
|
||
private String javaVmArguments = System.getProperty("jboss.options"); | ||
|
||
|