or
<concat><fileset dir="dirToFile" includes="FILE"/></concat>
Personally I use a macrodef´d version:
<project name="common-define-print">
<macrodef name="print">
<attribute name="file"/>
<sequential>
<concat taskname="print"><fileset dir="."
includes="@{file}"/></concat>
</sequential>
</macrodef>
</project>
<project>
<import file"=common/define-print.xml"/>
<print file="foo.txt"/>
</project>
Jan
p.s.
maybe I should post my predefined snippets somewhere :)
>-----Ursprüngliche Nachricht-----
>Von: THUFIR HAWAT [mailto:[EMAIL PROTECTED]
>Gesendet: Montag, 1. August 2005 20:38
>An: Burgess, Benjamin
>Cc: Ant Users List; Andrew Goktepe
>Betreff: Re: echo foo.txt, like "cat foo.txt"
>
>On 8/1/05, Burgess, Benjamin <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For
>additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]