Ant:如何禁用所有非错误消息?
当我在 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
选项。
知道如何禁用此消息吗?
谢谢你!
When running ant from command line on my Netbeans projects, I get the following messages hundreds of times, which is very annoying:
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
Depending of the kind of the project, there can be much more of such lines.
And this is with the -q
or -quiet
option.
Any idea, how to disable this message?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有点 hack,但如果你使用的是类 UNIX 系统,也许可以这样做:
A bit of a hack, but if you are on a unix like system, perhaps do: