Red Hat Bugzilla – Bug 963986
Standalone.bat does not work if quote characters are on path to EAP
Last modified: 2013-12-15 11:14:22 EST
+++ This bug was initially created as a clone of Bug #916960 +++
While investigating and testing possible solutions to the bug mentioned above, further issues with the script were found.
If you have defined a JBOSS_HOME environment variable, it executes differently depending on whether it is defined with quotes or without quotes. For example:
SET JBOSS_HOME="C:\Program Files (x86)\jboss-eap-6.1"
runs into an issue with this line:
if "x%JBOSS_HOME%" == "x"
SET JBOSS_HOME=C:\Program Files (x86)\jboss-eap-6.1
runs into other issues.
"C:\Program Files (x86)\EAP-6.1.0" is default installation path on windows (when using installer). User won't be able to run EAP in standalone mode neither by using start-menu shortcut nor by directly invoking standalone.bat script, if he choose default installation path.
This seems to be a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=916960, but this one contains all the ACK's so I'm giving the devel_ack+ here.
I was able to start server without any issue using both options:
set JBOSS_HOME="W:\pkremens\Program Files (x86)\jboss-eap-6.2"
set JBOSS_HOME=W:\pkremens\Program Files (x86)\jboss-eap-6.2
Verified on EAP 6.2.0.ER5.