在我的Netbeans项目中从命令行运行ant时,我收到以下消息数百次,这非常烦人:
Trying to override old definition of task http://www.netbeans.org/ns/j2se-project/3:javac
Trying to override old definition of task http://www.netbeans.org/ns/j2se-project/3:depend
Trying to override old definition of task http://www.netbeans.org/ns/j2se-project/1:nbjpdastart
Trying to override old definition of task http://www.netbeans.org/ns/j2se-project/3:debug
Trying to override old definition of task http://www.netbeans.org/ns/j2se-project/1:java
根据项目的类型,可以有更多这样的线。
这是 -q
或-quiet
选项。
任何想法,如何禁用此消息?
谢谢!
答案 0 :(得分:2)
有点像黑客攻击,但是如果你使用类似unix的系统,也许可以:
alias ant="ant | grep -v 'Trying to override old definition of task'"