Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2899

Help and error messages in Main classes should be printed raw

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • 8.1.0.CR1, 8.1.0.Final
    • None
    • Logging
    • None

    Description

      The help in standalone and host-controller main methods gets printed after System.out and System.err have been captured by jboss-stdio. This leads the help and errors being printed in a log manager format rather than just the raw text.

      Example output:

      [jperkins@jperkins-rh wildfly]$ ./build/target/wildfly-8.0.0.Final-SNAPSHOT/bin/standalone.sh -help
      =========================================================================
      
        JBoss Bootstrap Environment
      
        JBOSS_HOME: /home/jperkins/projects/jboss/as/wildfly/build/target/wildfly-8.0.0.Final-SNAPSHOT
      
        JAVA: java
      
        JAVA_OPTS:  -server -XX:+UseCompressedOops -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
      
      =========================================================================
      
      15:31:43,895 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.0.Final
      15:31:44,918 INFO  [stdout] (main) 
      15:31:44,918 INFO  [stdout] (main) Usage: standalone.sh [args...]
      15:31:44,918 INFO  [stdout] (main) where args include:
      15:31:44,918 INFO  [stdout] (main)     --admin-only                        Set the server's running type to 
      15:31:44,919 INFO  [stdout] (main)                                         ADMIN_ONLY causing it to open 
      15:31:44,919 INFO  [stdout] (main)                                         administrative interfaces and accept 
      15:31:44,919 INFO  [stdout] (main)                                         management requests but not start other 
      15:31:44,920 INFO  [stdout] (main)                                         runtime services or accept end user 
      15:31:44,920 INFO  [stdout] (main)                                         requests.
      15:31:44,920 INFO  [stdout] (main) 
      15:31:44,920 INFO  [stdout] (main) 
      15:31:44,921 INFO  [stdout] (main)     -b <value>, -b=<value>              Set system property jboss.bind.address 
      15:31:44,921 INFO  [stdout] (main)                                         to the given value
      15:31:44,921 INFO  [stdout] (main) 
      15:31:44,921 INFO  [stdout] (main) 
      15:31:44,922 INFO  [stdout] (main)     -b<interface>=<value>               Set system property 
      15:31:44,922 INFO  [stdout] (main)                                         jboss.bind.address.<interface> to the 
      15:31:44,922 INFO  [stdout] (main)                                         given value
      15:31:44,922 INFO  [stdout] (main) 
      15:31:44,923 INFO  [stdout] (main) 
      15:31:44,923 INFO  [stdout] (main)     -c <config>, -c=<config>            Name of the server configuration file 
      15:31:44,923 INFO  [stdout] (main)                                         to use (default is "standalone.xml") 
      15:31:44,923 INFO  [stdout] (main)                                         (Same as --server-config)
      15:31:44,924 INFO  [stdout] (main) 
      15:31:44,924 INFO  [stdout] (main) 
      15:31:44,924 INFO  [stdout] (main)     --debug [<port>]                    Activate debug mode with an optional 
      15:31:44,924 INFO  [stdout] (main)                                         argument to specify the port. Only 
      15:31:44,925 INFO  [stdout] (main)                                         works if the launch script supports it.
      15:31:44,925 INFO  [stdout] (main) 
      15:31:44,925 INFO  [stdout] (main) 
      15:31:44,925 INFO  [stdout] (main)     -D<name>[=<value>]                  Set a system property
      15:31:44,926 INFO  [stdout] (main) 
      15:31:44,926 INFO  [stdout] (main) 
      15:31:44,926 INFO  [stdout] (main)     -h, --help                          Display this message and exit
      15:31:44,927 INFO  [stdout] (main) 
      15:31:44,927 INFO  [stdout] (main) 
      15:31:44,927 INFO  [stdout] (main)     --read-only-server-config=<config>  Name of the server configuration file 
      15:31:44,927 INFO  [stdout] (main)                                         to use. This differs from 
      15:31:44,928 INFO  [stdout] (main)                                         '--server-config' and '-c' in that the 
      15:31:44,928 INFO  [stdout] (main)                                         original file is never overwritten.
      15:31:44,928 INFO  [stdout] (main) 
      15:31:44,928 INFO  [stdout] (main) 
      15:31:44,929 INFO  [stdout] (main)     -P <url>, -P=<url>,                 Load system properties from the given 
      15:31:44,929 INFO  [stdout] (main)          --properties=<url>             url
      15:31:44,929 INFO  [stdout] (main) 
      15:31:44,929 INFO  [stdout] (main) 
      15:31:44,930 INFO  [stdout] (main)     -S<name>[=<value>]                  Set a security property
      15:31:44,930 INFO  [stdout] (main) 
      15:31:44,930 INFO  [stdout] (main) 
      15:31:44,930 INFO  [stdout] (main)     --server-config=<config>            Name of the server configuration file 
      15:31:44,931 INFO  [stdout] (main)                                         to use (default is "standalone.xml") 
      15:31:44,931 INFO  [stdout] (main)                                         (Same as -c)
      15:31:44,931 INFO  [stdout] (main) 
      15:31:44,931 INFO  [stdout] (main) 
      15:31:44,932 INFO  [stdout] (main)     -u <value>, -u=<value>              Set system property 
      15:31:44,932 INFO  [stdout] (main)                                         jboss.default.multicast.address to the 
      15:31:44,932 INFO  [stdout] (main)                                         given value
      15:31:44,933 INFO  [stdout] (main) 
      15:31:44,933 INFO  [stdout] (main) 
      15:31:44,933 INFO  [stdout] (main)     -v, -V, --version                   Print version and exit
      15:31:44,934 INFO  [stdout] (main) 
      15:31:44,934 INFO  [stdout] (main)
      

      Attachments

        Activity

          People

            jperkins-rhn James Perkins
            jperkins-rhn James Perkins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: