ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <>
Subject Re: Echo a file to another file
Date Wed, 10 Nov 2004 07:55:38 GMT
Why  this would not work:
<loadfile srcfile="a.txt" property="content-a"/>
<loadfile srcfile="b.txt" property="content-b"/>
<echo file="b.txt" message="${content-a}${content-b}"/>

The only problem I see is that each time b.txt will be updated. It is 
better not to update files in place or have a valid condition to avoid 
repetitive updates (maybe using <touch file="timestamp" with 

- Alexey.

Ivan Ivanov wrote:

>Dear Colleagues,
>I want to do something relative simple: I have two
>text files say a.txt and b.txt and I want to place the
>contents of a.txt in the beginning of b.txt. I thought
>I could use <echo> task, but now I see it won't do
>Can you give me any advice?
>Thank you in advance

View raw message