ant-user mailing list archives

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

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

/*
Hello,

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/EntityForNumbers.java"/>


Regards, GIlbert

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message