ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knuplesch, Juergen" <>
Subject AW: Getting substring in ANT
Date Mon, 06 Apr 2009 10:32:57 GMT
As I wrote last week in a different context:

I use propertyregex from antcontrib:

          <propertyregex property="vm.propertyname" input="${vm.propertytupel}" 
          <echo>Property vm.propertyname=${vm.propertyname}</echo> 

Jürgen Knuplesch 

Jürgen Knuplesch          
icon Systemhaus GmbH                Tel. +49 711 806098-275
Sophienstraße 40                    
D-70178 Stuttgart                   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-----Ursprüngliche Nachricht-----
Von: Pankaj Arora01 [] 
Gesendet: Montag, 6. April 2009 12:17
An: Ant Users List
Betreff: Getting substring in ANT

HI All,

I have following directory structure:



C:\abc\deploy\oracle\ NAAM09102NNAQCF\NAAM09102NNAQCF_ext_sdo01

I have a variable x that contains following value:


Now I need to iterate through above directory and for each of the above directories, I need
two values in the same loop:

1) C:\abc\deploy\oracle\NAAM09102NNAQAE\NAAM09102NNAQAE_core01

2) NAAM09102NNAQAE_core01

I am able to retrieve the 1) but not the second one. I need something like substring...

Please help...

**************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND
CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the
intended recipient, please notify the sender by e-mail and delete the original message. Further,
you are not to copy, disclose, or distribute this e-mail or its contents to any other person
and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every
reasonable precaution to minimize this risk, but is not liable for any damage you may sustain
as a result of any virus in this e-mail. You should carry out your own virus checks before
opening the e-mail or attachment. Infosys reserves the right to monitor and review the content
of all messages sent to or from this e-mail address. Messages sent to or from this e-mail
address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

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

View raw message