ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From galenboyer...@hotpop.com
Subject Re: Macrodef in import file having same behaviour as targets?
Date Tue, 04 Jan 2005 21:08:21 GMT
Yves Leung-Tack <yves.leungtack@laposte.net> writes:

> Hi,
> 
> Is it possible for ant to get a filename , parsing it
> and get a substring of that filename for using it ??
> 
> What I want to do exactly in build.xml is:
>         if  a file with *QAE.tar.gz exists then
>           parse the that filename to get the substring from index 4 to 9
>           use that substring
>         else
>           do other things
>          Thanks

Seems like you need ant-contrib.  Look up the tasks, <if>,
<PropertyRegex> as well as the build-in task, <available>.

-- 
Galen Boyer




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


Mime
View raw message