2013-04-04 119 views

回答

2

我能想到的唯一方法就是從另一個目標中的任務中調用目標,並將其轉儲到文本文件中。

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

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