ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krist van Besien <krist.vanbes...@gmail.com>
Subject Re: extracting part of a property.
Date Mon, 08 Aug 2005 13:55:44 GMT
On 8/8/05, James Fuller <jim.fuller@ruminate.co.uk> wrote:
> Krist van Besien wrote:
> 
> >Hello,
> >
> >I am trying to figure out if I could get ant to do some string manipulation.
> >Suppose I have a property with value: "foo_0.01
> >and I want to split this on the _ character  and put "foo" and "0.01"
> >each in a different property to use further down in my ant script.
> >
> >How would I do this?
> >
> >Krist
> >
> >
> >
> >
> >
> 
> use PropertyRegex task from ant-contrib library
> http://ant-contrib.sourceforge.net/tasks/tasks/index.html

Thanks. That is exactly what I was looking for. And thanks also for
pointing me in the direction of the ant-contrib lib. This preempted
quite a few other questions I had.

Krist
-- 
krist.vanbesien@gmail.com
Solothurn, Switzerland

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


Mime
View raw message