Bugs item #1174711, was opened at 2005-04-01 11:21
Message generated for change (Comment added) made by drieseng
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: Gert Driesen (drieseng)
Date: 2005-04-02 18: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
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to