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 6722] New: - Dependent target reexecuted in parallel task
Date Wed, 27 Feb 2002 15:43:47 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=6722>.
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=6722

Dependent target reexecuted in parallel task

           Summary: Dependent target reexecuted in parallel task
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: kevin.christen@valtech.com


Dependencies within parallel tasks don't seem to be handled correctly.  Run the 
following build.xml file:

<?xml version="1.0"?>

<project name="test" default="all">

  <target name="all" depends="init">
    <parallel>
      <antcall target="first"/>
    </parallel>
  </target>

  <target name="init"/>

  <target name="first" depends="init"/>

</project>

$ ant
Buildfile: build.xml

init:

all:

init:

first:

BUILD SUCCESSFUL

Total time: 0 seconds

The init target was executed twice.  According to the documentation on 
depends: "A target gets executed only once, even when more than one target 
depends on it...".

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