You actually can reference filesets in the foreach task... <foreach item="File" property="projName"> <in> <items refid="vbprojs" /> </in> <do>...</do> </foreach>
The <items> element is the fileset, not the <in> item. There are a couple of tasks like this... it allows multiple filesets to be specified. -- Troy > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Felice Vittoria > Sent: Thursday, 15 July 2004 10:17 PM > To: Nant-Users (E-mail) > Subject: [Nant-users] Is This Valid? > > Hello, > > Is something like this valid with the latest nightly build of > Nant ( 0.85-20040711 )? > > <fileset id="vbprojs"> > <include name="A\A.vbproj" /> > <include name="B\B.vbproj" /> > </fileset> > > <target name="test"> > <foreach item="File" property="projName"> > <in refid="vbprojs" /> > <do> > <echo message="projName = ${projName}"/> > </do> > </foreach> > </target> > > If so, then I'm getting errors. If it's not valid, then I > see why I'm getting errors. > > Felice > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop FREE > Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_idG21&alloc_id040&op=ick > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > > > Disclaimer Message: This message contains confidential information and is intended only for the individual(s) named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please immediately delete it and all copies of it from your system, destroy any hard copies of it, and notify the sender. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. To the maximum extent permitted by law, Immersive Technologies Pty. Ltd. does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users