Bug 963986 - Standalone.bat does not work if quote characters are on path to EAP
Summary: Standalone.bat does not work if quote characters are on path to EAP
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Scripts and Commands
Version: 6.1.0
Hardware: Unspecified
OS: Windows
unspecified
high
Target Milestone: ER3
: EAP 6.2.0
Assignee: James Perkins
QA Contact:
URL:
Whiteboard:
Depends On: 916960
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-17 00:10 UTC by Russell Dickenson
Modified: 2013-12-15 16:14 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 916960
Environment:
windows
Last Closed: 2013-12-15 16:14:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.