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.
精彩评论