For #1, the "in" attribute probably shouldn't be used when you're using a fileset. If you want to specify a directory to start the search from, use the "basedir" attribute on the <items> element.
For #2, I had to do something similar and the only way I know of to do it (without <script>) is the <regex> task. There is an example of how to get the filename without the extention in the documentation for <regex>. -----Original Message----- From: Yogesh Shetty [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 6:25 AM To: [EMAIL PROTECTED] Subject: [nant-dev] ForEach & RegEx. I am stucked up with 2 problems Problem 1 : <target name="Build" > <foreach item="File" in="${OutputFolder}" property="filename"> <in> <items> <includes name="**/medco*.*"/> </items> </in> <do> <echo message="${filename}"/> </do> </foreach> </target> The above foreach tags must retrieve all those files having medco as prefix but this retrieves all files. but when i remove the in="${OutputFolder}" then it works as expected. seems to be a bug Problem 2 : In the above example i am iterating thru file list but i want only the file name to be extracted. C:\Test\Reg.htm, I want the Reg portion of string. Regards Yogesh S _________________________________________________________________ Watch Hallmark. Enjoy cool movies. http://server1.msn.co.in/sp03/hallmark/index.asp Win hot prizes! ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
