ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Using ant to parse text file
Date Thu, 22 Feb 2007 07:53:34 GMT
I dont know any way (without writing a custom task).

Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: DHARNA, AJAY [AG/1000] [mailto:ajay.dharna@monsanto.com] 
>Gesendet: Donnerstag, 22. Februar 2007 07:04
>An: Ant Users List
>Betreff: Using ant to parse text file
>
>Hi all 
>
>I am using Ant 1.6.5 - I would like to parse a text file that 
>would contain
>the following information: 
>
>[Sample.txt] 
>Test1 
>Group=red 
>
>Test2 
>Group=blue 
>
>Test3 
>Group=green 
>
>Example:- If I was to provide the value "Test2", I would like 
>the Ant to
>search for "Test2" in the file, and return the value "blue". 
>If I provide
>the value - "Test3", it should return the value "green"
>
>Please let me know if there is any simple way of doing this using Ant. 
>
>Thank you 
>
>Ajay Dharna 
>
>
>---------------------------------------------------------------
>------------------------------------------
>This e-mail message may contain privileged and/or confidential 
>information, and is intended to be received only by persons 
>entitled to receive such information. If you have received 
>this e-mail in error, please notify the sender immediately. 
>Please delete it and all attachments from any servers, hard 
>drives or any other media. Other use of this e-mail by you is 
>strictly prohibited.
>
>
>All e-mails and attachments sent and received are subject to 
>monitoring, reading and archival by Monsanto. The recipient of 
>this e-mail is solely responsible for checking for the 
>presence of "Viruses" or other "Malware". Monsanto accepts no 
>liability for any damage caused by any such code transmitted 
>by or accompanying this e-mail or any attachment.
>---------------------------------------------------------------
>------------------------------------------
>
>

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


Mime
View raw message