start-server command fails to parse arguments correctly
-------------------------------------------------------

                 Key: GERONIMO-3935
                 URL: https://issues.apache.org/jira/browse/GERONIMO-3935
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: startup/shutdown
    Affects Versions: 2.1, 2.1.1, 2.2
            Reporter: Jarek Gawor


bin/start-server command fails with a ProcessingException on some parameters 
that require arguments. For example:

bin/start-server -l log

Generates:

org.apache.geronimo.gshell.clp.ProcessingException: Option "-l (--logfile)" 
takes an operand
        at 
org.apache.geronimo.gshell.clp.CommandLineProcessor$ParametersImpl.get(CommandLineProcessor.java:208)
        at 
org.apache.geronimo.gshell.clp.handler.FileHandler.handle(FileHandler.java:44)
        at 
org.apache.geronimo.gshell.clp.CommandLineProcessor.process(CommandLineProcessor.java:277)
        at 
org.apache.geronimo.gshell.command.CommandSupport.execute(CommandSupport.java:88)
        at 
org.apache.geronimo.gshell.plugin.PlexusCommandWrapper.execute(PlexusCommandWrapper.java:71)
        at 
org.apache.geronimo.gshell.DefaultCommandExecutor.execute(DefaultCommandExecutor.java:209)
        at 
org.apache.geronimo.gshell.ExecutingVisitor.visit(ExecutingVisitor.java:96)
        at 
org.apache.geronimo.gshell.parser.ASTExpression.jjtAccept(ASTExpression.java:17)
        at 
org.apache.geronimo.gshell.parser.SimpleNode.childrenAccept(SimpleNode.java:57)
        at 
org.apache.geronimo.gshell.ExecutingVisitor.visit(ExecutingVisitor.java:79)
        at 
org.apache.geronimo.gshell.parser.ASTCommandLine.jjtAccept(ASTCommandLine.java:17)
        at 
org.apache.geronimo.gshell.DefaultCommandLineBuilder$1.execute(DefaultCommandLineBuilder.java:95)
        at 
org.apache.geronimo.gshell.DefaultCommandExecutor.execute(DefaultCommandExecutor.java:86)


This also applies to stop-server command.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to