ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Fuller <>
Subject Re: extracting part of a property.
Date Mon, 08 Aug 2005 12:32:35 GMT
Krist van Besien wrote:

>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?

use PropertyRegex task from ant-contrib library

gl, Jim Fuller

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message