ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knuplesch, Juergen" <Juergen.Knuple...@icongmbh.de>
Subject AW: How to get substring of a property
Date Tue, 31 Mar 2009 10:47:46 GMT
I use propertyregex from antcontrib:

          <propertyregex property="vm.propertyname" input="${vm.propertytupel}" 
            regexp="([^#]*)#([^#]*)" 
            select="\1"
            defaultvalue="Error"
            override="true"/>
          <echo>Property vm.propertyname=${vm.propertyname}</echo> 


-- 
Jürgen Knuplesch 
-----Ursprüngliche Nachricht-----
Von: Document [mailto:ddocument@gmail.com] 
Gesendet: Dienstag, 31. März 2009 00:46
An: user@ant.apache.org
Betreff: How to get substring of a property

Hi,
How do I get a substring of a property? Lets say I have a property whose value is "some.value".
I want only the characters before the dot i.e.
"some". Any pointers? Please reply to me along with the user@ant.apache.orgemail id

Thanks
P

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


Mime
View raw message