Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ANT script to iterate on FileNames  RSS feed

 
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
Sheriff
Posts: 37230
519
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
Boost this thread!