Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 928888

Summary: standalone.bat has a syntax error that prevents settingdebug port or using the default debug port
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Tom Fonteyne <tfonteyn>
Component: Scripts and CommandsAssignee: jboss-set
Status: CLOSED EOL QA Contact: Marek Kopecky <mkopecky>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1.0CC: pkremens
Target Milestone: ---   
Target Release: EAP 6.4.0   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1134807 (view as bug list) Environment:
Windows
Last Closed: 2019-08-19 12:48:09 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:    
Bug Blocks: 1134807    

Description Tom Fonteyne 2013-03-28 16:52:58 UTC
standalone.bat has these lines:

:READ-DEBUG-PORT
set "DEBUG_MODE=true"
set DEBUG_ARG="%2"
if not "x%DEBUG_ARG" == "x" (
   if x%DEBUG_ARG:-=%==x%DEBUG_ARG% (
      shift
      set DEBUG_PORT=%DEBUG_ARG%
   )
   shift
   goto READ-ARGS
)

which are not working properly. Replace them with these:

:READ-DEBUG-PORT
set "DEBUG_MODE=true"
if not "%2" == "" (
   if not "%2:~0,1" == "-" (
      set DEBUG_PORT=%2
      shift
   )
   shift
   goto READ-ARGS
)

Comment 3 Petr Kremensky 2014-07-09 08:06:54 UTC
Fix that Tom provided in description works for me.