Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
get filename

get filename

2006-08-18       - By Benjamin H.
Reply:     1     2     3     4     5     6     7     8     9  

Hi out there,

is it possible to get only the name of a file without the whole path??

This is for path - but only need the filename:
<for param="filename">
           <path>
               <fileset dir="reftest" />
           </path>
               <sequential><echo>@{filename}</echo></sequential>
               </for>

The files are in a directory!!

Regards ele

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.