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 10329] - depends used in parallel not synchronized
Date Mon, 01 Jul 2002 21:42:18 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=10329>.
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=10329

depends used in parallel not synchronized





------- Additional Comments From jdc@nextjet.com  2002-07-01 21:42 -------
I believe in the case below -- "b" will sometimes run more than once...

<target name="main">
 <parallel>
   <antcall target="a">
    <param name="something" value="1"/>
   </antcall>
   <antcall target="a">
    <param name="something" value="2"/>
   </antcall> </parallel>
 </parallel>
</target>

<target name="a" depends="b">
 ...
</target>

<target name="b">
 <echo message="You should only see me once!"/>
</target>


I understand some of the internals of a target may not be entirely thread 
safe... but the basis of the 'depends' function as is listed in the ant 
docs: "A target gets executed only once, even when more than one target depends 
on it (see the previous example)." I would hope at least this could be upheld.

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