ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Append three files using ant?
Date Wed, 27 Jun 2001 01:18:50 GMT
--- Chris Wall <chris.wall@bea.com> wrote:
> I would like to append one or more files to an existing file.
> <exec> with cat doesn't seem to work.
> The output attribute overwrites the existing file, and <exec> doesn't
> like ">>".

Since you're running 'cat', I'll assume you have a shell, so try:
   <target name="docat">
     <exec executable="sh">
       <arg line='-c "cat foo1 foo2 foo3 >> allfoo"'/>
     </exec>
   </target>

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Mime
View raw message