ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11098] New: - Targets specified on command line rerun dependencies
Date Tue, 23 Jul 2002 19:06:16 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11098>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11098

Targets specified on command line rerun dependencies

           Summary: Targets specified on command line rerun dependencies
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: andrew.j.delpha@seabury.com


If target a depends on target c, and target b depends on target c, I believe
that running "ant a b" would run target c only once (and targets would run in
the order c a b).  Instead it runs c a c b.

According to the documentation at
http://jakarta.apache.org/ant/manual/using.html#targets
"A target gets executed only once, even when more than one target depends on it ".

I reproduced this under ant 1.5 under linux, and ant 1.4 under windows also.

A sample build file and the resulting execution from ant 1.4.1 on linux are
included below.

==========================================================
<project name="cmdLineDepBugTest1" default="a">
        <target name="a" depends="c">
                <echo message="Running a"/>
        </target>
        <target name="b" depends="c">
                <echo message="Running b"/>
        </target>
        <target name="c">
                <echo message="Running c"/>
        </target>
</project>
==========================================================
[adelpha@lightman antTest]$ ant a b
Buildfile: build.xml

c:
     [echo] Running c

a:
     [echo] Running a

c:
     [echo] Running c

b:
     [echo] Running b

BUILD SUCCESSFUL

Total time: 1 second
[adelpha@lightman antTest]$ 

==========================================================

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message