Bugs item #1210046, was opened at 2005-05-27 19:45
Message generated for change (Comment added) made by drieseng
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1210046&group_id=31650
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: 0.85
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Hinrichs (thinrichs)
>Assigned to: Gert Driesen (drieseng)
Summary: Fileset fails when nested in an if block. - 0.85 RC2
Initial Comment:
I am running into an error which states "Unknown task
<fileset>" when I try to nest a fileset in an if block. Of
course, fileset isnt a task. It's a type, according to the
NAnt documentation.
The following code fails (this is not my actual code that
is failing, but does characterize the bug)
<fileset id="Files">
<include name="**">
</fileset>
<if test="{case=='SpecialCase'}>
<fileset id="Files">
<include name="**"/>
<exclude name="/specialCase/example.txt">
</fileset>
</if>
code such as that above works fine, until case
equals 'SpecialCase'. Interestingly the following also
fails (but fails right away).
It still fails on the line in the commented out if block.
<fileset id="Files">
<include name="**">
</fileset>
<! -- <if test="{case=='SpecialCase'}> -->
<fileset id="Files">
<include name="**"/>
<exclude name="/specialCase/example.txt">
</fileset>
<!-- </if> -->
----------------------------------------------------------------------
>Comment By: Gert Driesen (drieseng)
Date: 2005-06-26 09:08
Message:
Logged In: YES
user_id=707851
This is now "fixed" in cvs.
Thanks to Martin Aliger for providing a patch !
----------------------------------------------------------------------
Comment By: Martin Aliger (maliger)
Date: 2005-06-13 17:55
Message:
Logged In: YES
user_id=655297
its by design in current sources. I just completed patch to
allow type definitions in nested blocks. Your second example
is valid though and it works for me (after correcting xml inline
elements). Could you check it again and if still wrong explain
it further?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1210046&group_id=31650
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers