Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ant: concat the output of an executable to some other files without creating a temporary file?

Tags:

ant

See the example below.

<concat destfile="dest-file">
    <fileset dir="dir1" />
    <!-- how to append the output of the executable below without creating a temporary file for that output? -->
    <apply executable="command1">...</apply>
</concat>
like image 640
Ethan Avatar asked Oct 08 '22 18:10

Ethan


1 Answers

The apply and exec tasks support redirectors so you can do something like:

<apply executable="command1" >
    <redirector append="true" output="file.log" />
</apply>
like image 187
krock Avatar answered Oct 10 '22 10:10

krock