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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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>
==========================================================
[EMAIL PROTECTED] 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
[EMAIL PROTECTED] antTest]$ 

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

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to