Bug 928888 - standalone.bat has a syntax error that prevents settingdebug port or using the default debug port
Summary: standalone.bat has a syntax error that prevents settingdebug port or using th...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Scripts and Commands
Version: 6.1.0
Hardware: Unspecified
OS: Windows
medium
medium
Target Milestone: ---
: EAP 6.4.0
Assignee: jboss-set
QA Contact: Marek Kopecky
URL:
Whiteboard:
Depends On:
Blocks: 1134807
TreeView+ depends on / blocked
 
Reported: 2013-03-28 16:52 UTC by Tom Fonteyne
Modified: 2019-08-19 12:48 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
: 1134807 (view as bug list)
Environment:
Windows
Last Closed: 2019-08-19 12:48:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1199194 0 unspecified CLOSED "./standalone.sh --debug" without port number does not work 2021-02-22 00:41:40 UTC

Internal Links: 1199194

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.


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