ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knuplesch, Jürgen <>
Subject AW: How to get the simple file name?
Date Tue, 11 Sep 2007 06:00:55 GMT

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.


Jürgen Knuplesch          
icon Systemhaus GmbH                Tel. +49 711 806098-275
Sophienstraße 40                    
D-70178 Stuttgart                   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-----Ursprüngliche Nachricht-----
Von: Hans Schwaebli [] 
Gesendet: Dienstag, 14. August 2007 12:12
Betreff: How to get the simple file name?

There is a task called <dirname>
  I would need a task which gives me just the filename. Any idea?
  Now I need to extract the filename "".
  Of course these filenames are dynamical, so it should work for any full path to a file.

Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. 

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

View raw message