Re: testing for verbose mode

2004-07-10 Thread Steve Loughran
Wascally Wabbit wrote: At 11:17 AM 7/9/2004, you wrote: Conor MacNeill wrote: It you can decide not to issue messages, you can decide to change the behavior of your task in a more radical fashion. But nevermind this point. Still if we want to have such functionality what we would need is an API i

Re: testing for verbose mode

2004-07-09 Thread Wascally Wabbit
At 11:17 AM 7/9/2004, you wrote: Conor MacNeill wrote: It you can decide not to issue messages, you can decide to change the behavior of your task in a more radical fashion. But nevermind this point. Still if we want to have such functionality what we would need is an API in project to check for c

Re: testing for verbose mode

2004-07-09 Thread Steve Loughran
Conor MacNeill wrote: It you can decide not to issue messages, you can decide to change the behavior of your task in a more radical fashion. But nevermind this point. Still if we want to have such functionality what we would need is an API in project to check for current "logging level of interes

RE: testing for verbose mode

2004-07-09 Thread Jose Alberto Fernandez
> From: Conor MacNeill [mailto:[EMAIL PROTECTED] > > > Jose Alberto Fernandez wrote: > > > > Well we also have the loggers. Which although not > controlled > > by the commad line, I think they should have the same > rights to events > > as "the logger" (otherwise they are useless for debug

Re: testing for verbose mode

2004-07-09 Thread Conor MacNeill
Stephen McConnell wrote: What if I said that I was only interested in knowing if the ant command line "-verbose" switch was enabled or not (as opposed to knowing anything about what log listeners are doing)? Steve. This is not possible today. Conor --

Re: testing for verbose mode

2004-07-09 Thread Conor MacNeill
Jose Alberto Fernandez wrote: Well we also have the loggers. Which although not controlled by the commad line, I think they should have the same rights to events as "the logger" (otherwise they are useless for debugging sections of a build). The logger is special. It has the right to write to th

RE: testing for verbose mode

2004-07-09 Thread Jose Alberto Fernandez
> From: Conor MacNeill [mailto:[EMAIL PROTECTED] > > In Ant, one of the build listeners is special. It is *the* logger. It > implements the BuildLogger interface and is the one which is > controlled > by the command line -v and -debug switches. Other build listeners are > controlled by mecha

Re: testing for verbose mode

2004-07-09 Thread Stephen McConnell
What if I said that I was only interested in knowing if the ant command line "-verbose" switch was enabled or not (as opposed to knowing anything about what log listeners are doing)? Steve. Conor MacNeill wrote: Stephen McConnell wrote: Is there a way I can test if an ant project is running in

Re: testing for verbose mode

2004-07-09 Thread Conor MacNeill
Stephen McConnell wrote: Is there a way I can test if an ant project is running in verbose mode or not? Nothing jumped out at me when going over the javadocs. I'm hoping there's something I can access via the Project class. No, not really. Verbosity setting is not a property of the Project bu

testing for verbose mode

2004-07-09 Thread Stephen McConnell
Is there a way I can test if an ant project is running in verbose mode or not? Nothing jumped out at me when going over the javadocs. I'm hoping there's something I can access via the Project class. Cheers, Steve. -- |---| | Magic by Merlin