Re: get filename

2006-08-18 Thread Scot P. Floess
Wasn't this answered earlier this week...using the target? -Original Message- >From: "Benjamin H." <[EMAIL PROTECTED]> >Sent: Aug 17, 2006 7:58 AM >To: user@ant.apache.org >Subject: get filename > >Hi out there, > >is it possible to get only the name of a file without the whole path?? > >

Re: get filename

2006-08-17 Thread Scot P. Floess
Newer versions of ant-contrib do support unset... :) Benjamin H. wrote: The type doesn't support the "unset" attribute. I think the problem is using ant-contrib in a old version (0.6) . 2006/8/17, Scot P. Floess <[EMAIL PROTECTED]>: Try this:

Re: get filename

2006-08-17 Thread Benjamin H.
The type doesn't support the "unset" attribute. I think the problem is using ant-contrib in a old version (0.6) . 2006/8/17, Scot P. Floess <[EMAIL PROTECTED]>: Try this:

Re: get filename

2006-08-17 Thread Scot P. Floess
Try this: Filename === ${filename} Notice the element has the attribute unset="true" Benjamin H. wrote: I has try this:

Re: get filename

2006-08-17 Thread James Abley
I definitely think is the way to go. ant.file: '${ant.file}' filename: '${filename}' HTH, James Benjamin H. wrote: I has try this: Filename === ${filename}

Re: get filename

2006-08-17 Thread Benjamin H.
I has try this: Filename === ${filename} But not so successful!! 2006/8/17, Scot P. Floess <[EMAIL PROTECTED]>: Did you try the task? Benjamin H. wrot

Re: get filename

2006-08-17 Thread Scot P. Floess
Did you try the task? Benjamin H. wrote: 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: @{filename} The files are in a directory!! Reg