ext-simon.stei...@nokia.com schrieb am 19.04.2011 um 15:29 (+0000):
> Hi,
> 
> If I run ant -v it prints every target defined which is massive, can I
> hide that in verbose mode?
> 
> Complete build sequence is [...]

The build sequence is part of both -v and -d, the latter being more
verbose than the former.

You can try other loggers and even build your custom logger and instruct
Ant to use it by supplying the -logger command line option.

http://ant.apache.org/manual/listeners.html

You can set such options via the ANT_ARGS environment variable.

First I thought, strange, there is no config file. But I researched this
topic, and turns out there is.

On POSIX, you can set ANT_ARGS in ~/.antrc so it'll be sourced
automatically by the Ant launcher scripts.

On Windows, it is a bit more complicated: you need two files in order
not to pollute the environment:

:: type C:\Users\MiLu\antrc_pre.bat
set ANT_ARGS=-logger mein.phantastischer.Logger

:: type C:\Users\MiLu\antrc_post.bat
set ANT_ARGS=

Also, see this thread:

AW: antrc & ant.conf files
http://marc.info/?l=ant-user&m=121117919227180&w=2

-- 
Michael Ludwig

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to