Bugs item #1174711, was opened at 2005-04-01 04:21
Message generated for change (Comment added) made by majohnson
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1174711&group_id=31650
Category: Tasks
Group: 0.85
Status: Closed
Resolution: Rejected
Priority: 5
Submitted By: Michael A. Johnson (majohnson)
Assigned to: Gert Driesen (drieseng)
Summary: infinite recursion when default.build is root .build file
Initial Comment:
In the documentation it indicates that you can build all
default tasks in sub dirs by declaring the following:
<nant>
<buildfiles>
<include name="**/default.build" />
</buildfiles>
</nant>
if this root file is called default.build it builds forever in an
infinite loop.
--
steps to reproduce:
create folder called foo and copy default.build containing
above snippet inside to kick off the build like this:
<project name="execute" default="build" >
<!-- build all the default targets underneath the
schemaGen folder -->
<target name="build" >
<nant>
<buildfiles>
<include name="**/default.build" />
</buildfiles>
</nant>
</target>
</project>
make child folders bar and baz and create default.build
files in each that do nothing such as:
<project name="execute" default="build" >
<target name="build" />
</project>
start nant from the foo folder and watch it build forever.
----------------------------------------------------------------------
>Comment By: Michael A. Johnson (majohnson)
Date: 2005-04-05 03:42
Message:
Logged In: YES
user_id=47323
perhaps the documentation is misleading for the nant task:
http://nant.sourceforge.net/release/latest/help/tasks/nant.html
if you look at section iii in the link above the docs intimate
that it will run nant on default.build in the sub folders below
the project folder. certainly newbies like me looking ot the
docs as guidance wouldnt expect the this to run recursively
forever...do you ?
----------------------------------------------------------------------
Comment By: Gert Driesen (drieseng)
Date: 2005-04-02 11:37
Message:
Logged In: YES
user_id=707851
Michael,
I don't think this is something we should check for.
Just exclude the "master" build file.
For example:
<nant>
<buildfiles>
<include name="**/default.build" />
<exlude name="default.build" />
</buildfiles>
</nant>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1174711&group_id=31650
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers