Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ant:concat将可执行文件的输出转换为其他文件,而不创建临时文件?_Ant - Fatal编程技术网

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>