开发者

Apache Ant: Run ant without showing the target names

When I run my build file, it always shows the target name.

For example, in my build f开发者_开发技巧ile if I have targets A, B, C. Then on when I type the command ant A, it shows

A: <...whatever>

How do I avoid displaying the A?

Any help is very much appreciated.


The command line switch is -q

$ ant -q A


A few options:

  • try -q for quiet mode
  • try -emacs (not sure if this dumps the targets or not, but worth trying)
  • write a custom logger


You might also have a look at the following blog entry http://codefeed.com/blog/?p=82. The author provides some code for a custom task to set the loglevel in a build script. This way you can enable and disable log output for specific operations.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜