ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <ca...@us.ibm.com>
Subject Re: replacing a token in a property value
Date Fri, 22 Jul 2005 17:06:11 GMT
antcontrib has a task to do regex replacements on property values: 
http://ant-contrib.sourceforge.net/tasks/tasks/propertyregex.html

-- 
Jeffrey E. Care (carej@us.ibm.com)
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)


lists@bitfaeule.net wrote on 07/22/2005 01:01:16 PM:

> Hi Ant Experts,
> 
> I want to do something simple. I have a property with a given value,
> i.e. "23/65" and I want to replace the "/" with a string, i.e. 
> "slash". I expected to find a task that would define my a new 
> property with the result of the replacement: i.e. 
> <property name="myInput" value="23/65"/>
> <myReplace ... /> -> so I can use the value "23slash65" in my ant 
> script later.
> 
> is there a simple solution?
> 
> thanks.
> 
> jacques
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message