https://issues.apache.org/bugzilla/show_bug.cgi?id=46089

           Summary: Build target specification on command line can be
                    enhanced
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


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
twice:

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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to