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??
>
>
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:
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:
Try this:
Filename === ${filename}
Notice the element has the attribute unset="true"
Benjamin H. wrote:
I has try this:
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}
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
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