Ant:在不创建临时文件的情况下将可执行文件的输出合并到其他文件?

Eth*_*han 5 ant

请参见下面的示例。

<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>
Run Code Online (Sandbox Code Playgroud)

kro*_*ock 4

和任务 支持s,apply因此您可以执行以下操作:execredirector

<apply executable="command1" >
    <redirector append="true" output="file.log" />
</apply>
Run Code Online (Sandbox Code Playgroud)