Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@1656 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Feb 23, 2009
1 parent 9f31b23 commit be4601c
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -116,14 +116,14 @@ public void setup() throws IOException
{
javaOpts = "";
}
javaOpts = "\"" + javaOpts + JAVA_OPTS + "\"";
javaOpts = javaOpts + JAVA_OPTS;
if (jbossHome == null)
{
throw new IllegalArgumentException("-D" + JBOSS_HOME_PROPERTY_NAME + " must be set");
}
else
{
jbossHome = System.getProperty(JBOSS_HOME_PROPERTY_NAME);
jbossHome = System.getProperty(JBOSS_HOME_PROPERTY_NAME);
File jbossHomeFile = new File(jbossHome);
jbossHome = jbossHomeFile.getPath();
log.info("Using JBoss instance in " + jbossHome + " at URL " + configuration.getHost());
Expand Down Expand Up @@ -219,7 +219,7 @@ private void launch(String scriptFileName, String params) throws IOException
String command[] = {
"sh",
"-c",
"cd " + jbossHome + "/bin;JAVA_OPTS=" + javaOpts + " ./" + scriptFileName + ".sh " + params
"cd " + jbossHome + "/bin;JAVA_OPTS=\"" + javaOpts + "\" ./" + scriptFileName + ".sh " + params
};
p = runtime.exec(command);
}
Expand Down

0 comments on commit be4601c

Please sign in to comment.