You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by David Corbin <dc...@machturtle.com> on 2003/02/23 15:55:42 UTC

Verbosity & Debug

How does an Ant task detect that -v or -debug as been set on the ant 
command line?

David


Re: Verbosity & Debug

Posted by Martin <mg...@hotmail.com>.
Ant has the capability during an exec to pass parameters along
if you want Ant to interpret the verbose argument then you have to say
verbose="true" doe the Ant task to process that particular attribute

Martin Gainty

----- Original Message -----
From: "David Corbin" <dc...@machturtle.com>
To: <us...@ant.apache.org>
Sent: Sunday, February 23, 2003 7:55 AM
Subject: Verbosity & Debug


> How does an Ant task detect that -v or -debug as been set on the ant
> command line?
>
> David
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>

Re: Verbosity & Debug

Posted by Jesse Stockall <je...@cryptocard.com>.
On Sunday, February 23, 2003, at 09:55 AM, David Corbin wrote:
> How does an Ant task detect that -v or -debug as been set on the ant 
> command line?

They don't need to, when you log messages, you select the level that it 
should appear at. Have a look at Task.log() and Project.log() 
(Task.log() calls through to Project.log(), but is a handy convenience 
method, if you extend Task)

Jesse Stockall - jesse@cryptocard.com
CRYPTOCard Corp.