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 6391] New: - Ant doesn't detect circular "depends" within an antcall.
Date Tue, 12 Feb 2002 12:44:13 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=6391>.
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=6391

Ant doesn't detect circular "depends" within an antcall.

           Summary: Ant doesn't detect circular "depends" within an antcall.
           Product: Ant
           Version: 1.4
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Build Process
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: gb@opengroup.org


If I have target A that task B depends on, i.e.

<target name="A" />

<target name="B" depends="A" />

Then if I do an antcall within A to B then you have a circular 
dependency.

i.e.

<target name="A">
   <antcall target="B" />
</target>

you now have a circular dependency and Ant will just spin.

It would be nice to have detection of this by examining the parent
target chain to ensure that this can't happen.

Leaving this down to the developer is feasible but can put a large burden on 
you when you have a large build file, i.e. > 2000 lines.

Looking at the change notes for 1.4.1 it doesn't look like this issue has been 
tackled.

Thanks,

Gary

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