ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@apache.org>
Subject Re: Write to file?
Date Tue, 27 Feb 2001 08:54:59 GMT
----- Original Message -----
From: <theis.meggerle@se.abb.com>
To: <ant-user@jakarta.apache.org>
Sent: Tuesday, February 27, 2001 9:32 AM
Subject: Write to file?


> Hi everybody!
>
> Is is possible to write to a file or do I have to write my own "taskdef".
>

Depends on how and what you would like to write to that file. If it's simple
ASCII you can use

<echo message="My Content" file="myfile.txt"/>

or

<echo file="myfile.txt">Now I would like to write more than
one
line
to
the
file
</echo>

or even

<echo file="myfile.txt" message="Now I would like to write more than"/>
<echo file="myfile.txt" message="one" append="yes"/>
<echo file="myfile.txt" message="line" append="yes"/>
<echo file="myfile.txt" message="to" append="yes"/>
<echo file="myfile.txt" message="the" append="yes"/>
<echo file="myfile.txt" message="file" append="yes"/>

Nico



Mime
View raw message