ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46089] New: Build target specification on command line can be enhanced
Date Sat, 25 Oct 2008 14:33:33 GMT

           Summary: Build target specification on command line can be
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core

Consider the following:

<target name="a"/>
<target name="b" depends="a"/>
<target name="c" depends="a"/>

If one runs targets "b" and "c" from the command line, the target "a" will run

1. a
2. b
3. a
4. c

Granted, target "a" may be "smart" and skip most of its processing if it
discovers that it has already run. However, even that creates some overhead and
additional console or log output and requires it to be made smart. I haven't
found a way around this except by creating my own shell for ant that creates
new targets dynamically and then runs those. In my example, running "b+c"
instead of "b c" would result in "a b c" instead of "a b a c" execution.

I believe something like this may be useful for general public.

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

View raw message