You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "koden (sent by Nabble.com)" <li...@nabble.com> on 2005/08/24 19:39:26 UTC
How to Echo a file contents?
If I have a text file, how do I echo the text inside of it using an Ant Task? The echo task can echo to a file, but can it echo a file's contents?
--
Sent from the Ant - Users forum at Nabble.com:
http://www.nabble.com/How-to-Echo-a-file-contents--t250912.html#a701728
Re: How to Echo a file contents?
Posted by Patrick Martin <an...@gmail.com>.
You can also use concat (avoids out of memory errors with big files).
On 8/24/05, Jeffrey E Care <ca...@us.ibm.com> wrote:
> Load the file into a property with <loadfile>, then <echo> the property
> value.
>
> --
> Jeffrey E. Care (carej@us.ibm.com)
> WebSphere v7 Release Engineer
> WebSphere Build Tooling Lead (Project Mantis)
>
>
> "koden (sent by Nabble.com)" <li...@nabble.com> wrote on 08/24/2005
> 01:39:26 PM:
>
> >
> > If I have a text file, how do I echo the text inside of it using an
> > Ant Task? The echo task can echo to a file, but can it echo a
> > file's contents?
> > --
> > Sent from the Ant - Users forum at Nabble.com:
> > http://www.nabble.com/How-to-Echo-a-file-contents--t250912.html#a701728
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: How to Echo a file contents?
Posted by Jeffrey E Care <ca...@us.ibm.com>.
Load the file into a property with <loadfile>, then <echo> the property
value.
--
Jeffrey E. Care (carej@us.ibm.com)
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)
"koden (sent by Nabble.com)" <li...@nabble.com> wrote on 08/24/2005
01:39:26 PM:
>
> If I have a text file, how do I echo the text inside of it using an
> Ant Task? The echo task can echo to a file, but can it echo a
> file's contents?
> --
> Sent from the Ant - Users forum at Nabble.com:
> http://www.nabble.com/How-to-Echo-a-file-contents--t250912.html#a701728