There was a discussion a ways back about supporting id/ref stuff for elements (including filesets).

 

I’m not sure how properties would work for this. Right now there isn’t really support for any type of property other than a string; and in-fact, the property add methods takes a string key and value.

 

I assume you want to reuse a fileset in multiple places. How do you feel about the id/ref idea?

 

It would look something like this.

 

 

                        <fileset id="myfileset" basedir="baz">

                                    <includes name="**/*.cs"/>

                                    <excludes name="foo.cs"/>

                        </ >

 

                        <fileset ref=”myfileset”/> <!—would be the same as embedding the above fileset-->

 

You may want to look through the archives for more information. I think there was a lengthy discussion (> 5 emails) about it.

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Lalonde, Paul
Sent:
Wednesday, July 31, 2002 10:08 AM
To: '[EMAIL PROTECTED]'
Subject: [nant-dev] filesets and properties

 

I was mucking around with Nant, and found myself needing a persistent fileset, and was thinking about a syntax that merges the idea with a property.  How do people feel about:

 

                        <property name="myfileset" basedir="baz">

                                    <includes name="**/*.cs"/>

                                    <excludes name="foo.cs"/>

                        </property>

 

                        <echo message="${myfileset}"/>

 

would print (assuming my directory had foo.cs, bar.cs, qux.cs):

baz/bar.cs baz/qux.cs

 

(it could resolve to full pathnames if that makes sense)

 

Paul

 

Reply via email to