ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <>
Subject RE: How to get the simple file name?
Date Tue, 11 Sep 2007 06:13:54 GMT

-----Original Message-----
From: Knuplesch, J├╝rgen [] 
Sent: Tuesday, September 11, 2007 8:01 AM
To: Ant Users List
Subject: AW: How to get the simple file name?


My expirience is, that Ant always gives you the full path, without a chance to change it.
If someone shows how (you could write your own Ant-Task), I would be very intersted.

My solution is to write the full filename into a textfile and then delete the path with the
replace task.
Probably you need this to write a scriptfile or sth else.

why not use <basename .../> ?

<basename property="filename" file="C:/foo/bar/"/>

Regards, GIlbert

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message