ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: echo foo.txt, like "cat foo.txt"
Date Tue, 02 Aug 2005 05:47:32 GMT
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:hawat.thufir@gmail.com] 
>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 <BBurgess@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
>
>

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


Mime
View raw message