请参阅下面的示例。
<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>
apply
和 exec
任务支持 redirector
s,因此您可以执行以下操作:
<apply executable="command1" >
<redirector append="true" output="file.log" />
</apply>