In Nant reference types and properties are not the same thing. Right now there is no support for assigning filesets to a different refid. You can only define them and then use them. Some new functionality is being planned for filesets. The ability to do assignment via the property task might be somthing to consider.
Ian
Pete John Poulos wrote:
I came across the following bug (whether it's a coding bug or a design bug, I don't know). I wasn't sure where/how to submit it (do you need to be a memeber of sourceforge to submit a bug?).
Anyhow, what follows is a build file demonstrating the bug.
<project name="Bug Sample" default="copy">
<fileset id="staticID"> <includes name="somefile"/> </fileset>
<property name="dynamicID" value="staticID"/>
<target name="copy" description="target with bug"> <copy todir="staticCopy"> <fileset refid="staticID" /> </copy>
<!-- BUG This should work, but it doesn't
The refid attribute doesn't expand ${} as all other attribute texts do.
Instead, the refid attribute text is interpreted literally without expanding. --> <copy todir="dynamicCopy"> <fileset refid="${dynamicID}" /> </copy> </target>
<target name="clean" description="cleans"> <delete> <fileset> <includes name="*copy" /> </fileset> </delete> </target> </project>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers
--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers