-----Original Message----- From: Rebhan, Gilbert [mailto:[email protected]] Sent: Wednesday, June 24, 2009 9:33 AM To: 'Ant Users List' Subject: RE: Using foreach
-----Original Message----- From: nisse [mailto:[email protected]] Sent: Wednesday, June 24, 2009 9:21 AM To: [email protected] Subject: Using foreach /* [..] This code prints for example "C:/Temp/MyFile.txt" But I only want it to print "MyFile.txt", how do I do that in a simple way?? */ wrong copy/paste example in my last post .. take two = <for param="file"> <path> <fileset dir="C:/test" includes="*.txt"/> </path> <sequential> <var name="basename" unset="true"/> <basename file="@{file}" property="basename"/> <echo> Filename = ${basename}</echo> </sequential> </for> Regards, Gilbert --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
