ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Jackson" <foamd...@gmail.com>
Subject Task for substringing?
Date Tue, 12 Jun 2007 09:16:16 GMT
Hi all,

In the project I'm working on I have a need to be able to substring an
expanded property value

<property name="test" value="123">
<substring src="test" begin="1" end="2" property="new">
<echo>${new}</echo>

-> 23

Is there a way of achieving this already?  Looking through the manual
I don't see a way of doing this without using scriptdef + script
language du jour and for my current project I cannot use that.

If there currently isn't a way of achieving this, then I can put
something together for it (and get paid for it :)

Kev

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


Mime
View raw message