ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Woodworth (JIRA)" <j...@apache.org>
Subject [jira] Updated: (IVY-952) Support for passing arbitrary arguments to the -main invoked class when using the standalone mode is severely limited.
Date Mon, 20 Oct 2008 13:27:44 GMT

     [ https://issues.apache.org/jira/browse/IVY-952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Patrick Woodworth updated IVY-952:
----------------------------------

    Description: Currently it is impossible to pass any arguments which start with the dash
character through to the class specified by the "main" argument in standalone mode.  The attached
patch makes the command-line parser recognize the special getopt-style "--" argument which
tells the parser to stop parsing for known arguments and simply pass all subsequent tokens
on to the main method of the class being invoked.  For the record, I am aware of the "args"
option which looks to be intended for this purpose, but it doesn't work. Introducing the special
"--" operator seemed the best fix as it's a widely recognized idiom for precisely this functionality.
 (was: Currently it is impossible to pass any arguments which start with the dash character
through to the class specified by the "main" argument in standalone mode.  The attached patch
makes the command-line parser recognize the special getopt-style "--" argument which tells
the parser to stop parsing for known arguments and simply pass all subsequent tokens on to
the main method of the class being invoked.)

> Support for passing arbitrary arguments to the -main invoked class when using the standalone
mode is severely limited.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: IVY-952
>                 URL: https://issues.apache.org/jira/browse/IVY-952
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0-RC1
>            Reporter: Patrick Woodworth
>         Attachments: IVY-952.patch
>
>
> Currently it is impossible to pass any arguments which start with the dash character
through to the class specified by the "main" argument in standalone mode.  The attached patch
makes the command-line parser recognize the special getopt-style "--" argument which tells
the parser to stop parsing for known arguments and simply pass all subsequent tokens on to
the main method of the class being invoked.  For the record, I am aware of the "args" option
which looks to be intended for this purpose, but it doesn't work. Introducing the special
"--" operator seemed the best fix as it's a widely recognized idiom for precisely this functionality.

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


Mime
View raw message