ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Weintraub" <qazw...@gmail.com>
Subject Re: Replacing chars in a property
Date Fri, 16 Nov 2007 04:45:54 GMT
A little tired right now to test it, but you could use a filter in a
copy. See these pages:

<http://ant.apache.org/manual/CoreTypes/filterchain.html>
<http://ant.apache.org/manual/CoreTypes/filterchain.html#replacestring>

On Nov 15, 2007 1:32 PM, Nicolai Kamenzky <kamenzky@inf.fu-berlin.de> wrote:
> Hi folks!
>
> I have a property which contains a path "C:\Documents and Settings
> \..." and I have to convert it to this format "c/Documents\ and\
> Settings/...". Thus I have to replace "\" with "/" and so on.
>
> How do I do this? I can access my property with ${myProperty} and
> want to get another property with the replaced chars.
>
> Cheers,
> Nicolai
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



-- 
--
David Weintraub
qazwart@gmail.com

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


Mime
View raw message