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诊断到一个单独的文件?_Ant - Fatal编程技术网

ant诊断到一个单独的文件?

ant诊断到一个单独的文件?,ant,Ant,我们可以将ant诊断结果打印到单独的文件中吗? 我在用 <target name="diagnostics" description="diagnostics" > <diagnostics/> </target> 它正在控制台中打印。我能想到的唯一方法是从另一个目标中的任务内部调用目标,并让它将输出转储到文本文件中 <project name="help" default="help"> <target name="di

我们可以将ant诊断结果打印到单独的文件中吗? 我在用

<target name="diagnostics" description="diagnostics" >
    <diagnostics/>
</target>


它正在控制台中打印。

我能想到的唯一方法是从另一个目标中的任务内部调用目标,并让它将输出转储到文本文件中

<project name="help" default="help">
   <target name="diagnostics">
       <diagnostics/>
   </target>

    <target name="help">
        <ant output="diag.txt" target="diagnostics"/>
    </target>
</project>