ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: putting value in txtfile
Date Wed, 26 Jan 2005 15:22:42 GMT
Um.... nevermind..... I missed the part that there is "just a blank 
line".  A custom FilterReader would work - have it only affect the 4th 
line.

	Erik

On Jan 26, 2005, at 8:55 AM, Erik Hatcher wrote:

> <replaceregexp> task or the replaceregex filter reader on a <copy> 
> would do the trick, I think.
>
> 	Erik
>
>
> On Jan 26, 2005, at 8:31 AM, Rebhan, Gilbert wrote:
>
>>
>> Hi,
>>
>> yet another txtfileprocessing question.
>>
>> File looks like that :
>>
>> 01 bla
>> 02 bla
>> 03 bla
>> 04
>> 05
>> 06
>> 07 bla
>> 08 bla
>> 09 bla
>>
>> How to put the value of a property on line 4 ?
>>
>> The rest of the file should remain as it is.
>>
>> Problem : no tokens like @...@ there, just a blank line
>> The linenumber, where the value should be put in is always
>> line number 04.
>>
>> Any hints ?
>>
>> Gilbert
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


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


Mime
View raw message