In addition to the antcontrib propertyregex solution already posted to the 
list, if you happened to be more comfortable with *nix shell string handling 
and with running Ant's trunk code, you could try the experimental props antlib 
that includes a stringops property handler: 
http://ant.apache.org/antlibs/sandbox.html#Props%20-%20additional%20Property%20Resolver

YMMV.

-Matt

--- On Mon, 3/30/09, Document <ddocum...@gmail.com> wrote:

> From: Document <ddocum...@gmail.com>
> Subject: How to get substring of a property
> To: user@ant.apache.org
> Date: Monday, March 30, 2009, 5:46 PM
> 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
> u...@ant.apache.orgemail
> id
> 
> Thanks
> P
> 


      

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

Reply via email to