Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-652

standalone.sh --debug flag swallows next argument if no port provided

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • None
    • Scripts
    • None
    • Hide

      1) Start the server using the following command

      standalone.sh --debug  --server-config=standalone-full.xml

      2) Note that it starts up in standalone mode and not full. This is because the --server-config argument was lost.

      Show
      1) Start the server using the following command standalone.sh --debug --server-config=standalone-full.xml 2) Note that it starts up in standalone mode and not full. This is because the --server-config argument was lost.

      When passing the --debug flag to the standalone.sh script, it will swallow the next argument if no port is provided. This occurs because the end of the argument processing loop performs a shift, but a debug flag with no port should not be shifted since the next argument is yet to be processed.

      This can be alleviated by adding a dummy variable to the positional parameters that will be {{shift}}ed off.

              Unassigned Unassigned
              briehman_jira Brian Riehman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: