Ant:concat将可执行文件的输出转换为其他文件,而不创建临时文件?
请参见下面的示例Ant:concat将可执行文件的输出转换为其他文件,而不创建临时文件?,ant,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 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 executable="command1" >
<redirector append="true" output="file.log" />
</apply>