请参见下面的示例。
<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>
请参见下面的示例。
<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>