ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Replacing chars in a property
Date Thu, 15 Nov 2007 07:45:40 GMT
<antcontrib:propertregex> ?

Jan 

> -----Urspr√ľngliche Nachricht-----
> Von: Nicolai Kamenzky [mailto:kamenzky@inf.fu-berlin.de] 
> Gesendet: Mittwoch, 14. November 2007 16:43
> An: user@ant.apache.org
> Betreff: Replacing chars in a property
> 
> 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
> 
> 

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


Mime
View raw message