ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burgess, Benjamin" <BBurg...@tiaa-cref.org>
Subject RE: echo foo.txt, like "cat foo.txt"
Date Mon, 01 Aug 2005 18:08:21 GMT
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 <hawat.thufir@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


Mime
View raw message