You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Yves Leung-Tack <yv...@laposte.net> on 2005/01/04 21:35:47 UTC
Parsing a file name and extract a substring with ant ?
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
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Parsing a file name and extract a substring with ant ?
Posted by Matt Benson <gu...@yahoo.com>.
--- Yves Leung-Tack <yv...@laposte.net>
wrote:
> Hi,
>
> Is it possible for ant to get a filename , parsing
> it
> and get a substring of that filename for using it ??
>
You should be able to do this using pathconvert with a
regexp mapper.
-Matt
__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org