ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Agnew <br...@oopsconsultancy.com>
Subject Re: how to copy and edit a section of a text file
Date Thu, 09 Oct 2008 19:41:50 GMT
Despite the fact that it comes from my company, it is in fact completely 
free. Such is the magic of open source etc.

I have long looked at making an 'enterprise-level' version with huge 
support contacts. With little success :-)

ca_iancu wrote:
> This is a commercial library. I want to use existing functionality from Ant
> to accomplish this task. I am certain it is possible, I just do not know Ant
> well enough yet. There has to be some sort of loop that can be created to
> read from a file line by line and stop when a certain string is encountered.
> I can copy and edit the teaxt once I have it in a variable. 
>
>
>
>
> Rebhan, Gilbert wrote:
>   
>> -----Original Message-----
>> From: ca_iancu [mailto:ca_iancu@hotmail.com]
>> Sent: Thursday, October 09, 2008 3:22 PM
>> To: user@ant.apache.org
>> Subject: how to copy and edit a section of a text file
>>
>> /*
>>
>> Hello, I'm trying to edit an XML file by searching with regular
>> expressions.
>> Once found, the text will be copied, changed and appended at the end (or
>> beginning) of the aforementioned found text.The lines I am looking for
>> have
>> the following format:
>>
>> ...
>>
>> */
>>
>> Maybe xmltask / xpath is an option !?
>> see =
>> http://www.oopsconsultancy.com/software/xmltask/
>>
>> Regards, Gilbert
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>>
>>     
>
>   

-- 
Brian Agnew                  http://www.oopsconsultancy.com
OOPS Consultancy Ltd         brian @ oopsconsultancy.com
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message