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 o
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!!
Regards ele
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
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!!
Regards ele
--- Matt Benson <[EMAIL PROTECTED]> wrote:
> To do this with pure Ant, see the
> task.
ack, lemme take that back... since pathconvert doesn't
(yet) support mappers, you're not going to get what
you want that way...
__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web
To do this with pure Ant, see the task.
-Matt
__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
-
To unsubscribe, e-mail: [EMAIL PROTE
IL PROTECTED]
Sent: Friday, January 23, 2004 1:27 PM
To: Ant Users List
Subject: Re: Is there an Ant task to get filename from a directory
See the element. I just found this by accident the other day.
You set an id attribute on the file set and then use that in a property
element to get just the
-1.2.8.jar instead of lib/jdom.jar lib/log4j-1.2.8.jar.
Thanks
sv.
-Original Message-
From: Clifton C. Craig [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 1:27 PM
To: Ant Users List
Subject: Re: Is there an Ant task to get filename from a directory
See the element. I just fou
13 matches
Mail list logo