Bug 963986

Summary: Standalone.bat does not work if quote characters are on path to EAP
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Russell Dickenson <rdickens>
Component: Scripts and CommandsAssignee: James Perkins <jperkins>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: brian.stansberry, jperkins, pkremens, rsvoboda, sgilda, smumford
Target Milestone: ER3   
Target Release: EAP 6.2.0   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 916960 Environment:
windows
Last Closed: 2013-12-15 16:14:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 916960    
Bug Blocks:    

Description Russell Dickenson 2013-05-17 00:10:52 UTC
+++ 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.

Comment 1 James Perkins 2013-09-20 18:48:47 UTC
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.

Comment 5 Petr Kremensky 2013-10-08 10:23:51 UTC
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.