5

请参见下面的示例。

<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>
4

1 回答 1

4

applyexec任务支持redirectors,因此您可以执行以下操作:

<apply executable="command1" >
    <redirector append="true" output="file.log" />
</apply>
于 2012-05-21T20:00:45.207 回答