ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Coene (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (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 22:28:44 GMT

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

Maarten Coene resolved IVY-952.
-------------------------------

       Resolution: Fixed
    Fix Version/s: trunk
         Assignee: Maarten Coene

Thank you for your contribution!
I've committed a modified version of your patch into SVN trunk and added a junit test.
Please verify that it's working as expected.

> 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
>            Assignee: Maarten Coene
>             Fix For: trunk
>
>         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
double-dash 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