You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Burgess, Benjamin" <BB...@tiaa-cref.org> on 2005/08/01 20:08:21 UTC

RE: echo foo.txt, like "cat foo.txt"

To print a file to the screen you could do this:

<loadfile property="myFile" srcfile="/myFileName"/>
<echo message="${myFile}"/>

Ben

-----Original Message-----
From: Andrew Goktepe [mailto:andrewgoktepe@gmail.com] 
Sent: Saturday, July 30, 2005 7:49 PM
To: Ant Users List; THUFIR HAWAT
Subject: Re: echo foo.txt, like "cat foo.txt"

Try it without the trailing slash in the dir attribute 
(dir="/home/thufir/java"). 

On 7/30/05, THUFIR HAWAT <ha...@gmail.com> wrote: 
> 
> 
> Heh, thanks. Here's what I have:
> 
> <concat destfile="${outputDir}/bar.txt" append="true">
> <filelist
> dir ="/home/thufir/java/"
> files ="foo.txt"
> />
> </concat>
> 
> I want "/home/thufir/java/foo.txt" to be appended to
> "${outputDir}/bar.txt", and then I might even "print" bar.txt to the
> screen as part of the script.
> 
> In the filelist, the "dir" and "files" means
"/home/thufir/java/foo.txt", 
> yes?
> 
> and the destination file is "${outputDir}/bar.txt", so that foo.txt
> will be appended to bar.txt yes?
> 
> I must have at least one thing wrong/not understood above.
> 
> 
> Thanks,
> 
> Thufir
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>


**************************************************************
This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies.  You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
TIAA-CREF
**************************************************************


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


Re: echo foo.txt, like "cat foo.txt"

Posted by THUFIR HAWAT <ha...@gmail.com>.
On 8/1/05, Burgess, Benjamin <BB...@tiaa-cref.org> wrote:
> To print a file to the screen you could do this:
> 
> <loadfile property="myFile" srcfile="/myFileName"/>
> <echo message="${myFile}"/>
> 
> Ben


That's great, Ben, really appreciate that :)

-Thufir

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