ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: How to get the simple file name?
Date Tue, 14 Aug 2007 10:14:54 GMT
<basename>

http://ant.apache.org/manual/CoreTasks/basename.html
Peter

On 8/14/07, Hans Schwaebli <hans_schwaebli@yahoo.com> wrote:
> There is a task called <dirname>
>
>   I would need a task which gives me just the filename. Any idea?
>
>   Example:
>   U:\projects\HSW_TST\src\com\haefele\hsw2\tst\abstractions\numbers\EntityForNumbers.java
>
>   Now I need to extract the filename "EntityForNumbers.java".
>
>   Of course these filenames are dynamical, so it should work for any full path to a file.
>
>
> ---------------------------------
> Moody friends. Drama queens. Your life? Nope! - their life, your story.
>  Play Sims Stories at Yahoo! Games.

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


Mime
View raw message