• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ANT script to iterate on FileNames

 
P Goel
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm a new ant user, and i want to iterate over all files present in a directory...
i found that it could be done by using <fileset> but it gives full path of file and i need only name of the files...
please help me out of this prob...

Pulkit
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34965
377
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use PropertyRegExp to parse out just the last part.
 
P Goel
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnx for replying...

it solved my issue...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic