ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
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: asusnjar@hotmail.com


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.

Mime
View raw message