ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48823] New: Recognize -- to signal end of options and beginning of target names
Date Fri, 26 Feb 2010 14:19:38 GMT

           Summary: Recognize -- to signal end of options and beginning of
                    target names
           Product: Ant
           Version: 1.8.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core

All getopt-based tools permit -- to be placed in a command's argument list to
indicate that all options have been passed and that further arguments are
"regular" items such as filenames.

In the case of Ant, any subsequent items should be interpreted as target names.

This would allow expert users to invoke targets whose name begins with a dash.
Conventionally these should be hidden, but on occasion you want to run them
e.g. to test that they function correctly, even when in normal usage they
should only ever be called from another target.

It would also be useful from scripts or IDEs that launch Ant using the command
line (rather than embedded) and want to pass a specific list of targets without
fear of some of them being misinterpreted as options.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message