You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/09/02 17:47:02 UTC
DO NOT REPLY [Bug 22759] -
antcall at top level causes infinite loop
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=22759>.
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=22759
antcall at top level causes infinite loop
bodewig@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dev@ant.apache.org
AssignedTo|dev@ant.apache.org |bodewig@apache.org
Target Milestone|--- |1.6
Version|1.1 |1.6Alpha (nightly)
------- Additional Comments From bodewig@apache.org 2003-09-02 15:47 -------
It hasn't popped up for two reasons:
(1) <antcall> cannot live at the top level in any released version, so it hasn't
been used that way by too many people yet.
(2) it used to cause a build failure instead of an inifite loop for the first
few months it was allowed there.
The is code in Ant.java that tries to detect this, but since top-level tasks get
executed at parser time now (they didn't in the initial version that allowed
top-level tasks), the test kicks in too late.
This is not a unique issue of having antcall at the top level, of course.
<target name="foo">
<antcall target="bar"/>
</target>
<target name="bar" depends="foo"/>
will have the same problem - and we've decided to not fix it as doing so would
require too much logic that could be defeated by more complex builds anyway.
We can and should test wether <ant> or <antcall> try to call the target they are
defined in. And for tasks at the top level we must not allow calling the same
build file at all.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org