maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barrie Treloar <baerr...@gmail.com>
Subject Re: AbstractMojo.getLog vs LogEnabled.enableLogging (found in maven-eclipse-plugin)
Date Fri, 27 Mar 2009 21:10:11 GMT
On Sat, Mar 28, 2009 at 1:59 AM, Jason van Zyl <jvanzyl@sonatype.com> wrote:
>
> On 26-Mar-09, at 5:29 PM, Barrie Treloar wrote:
>
>> EclipsePlugin extends AbstractIdeSupportMojo
>> AbstractIdeSupportMojo extends AbstractMojo implements LogEnabled
>> AbstractMojo has getLog()
>> LogEnabled has enableLogging()
>>
>> Which logger should be used?
>>
>> getLog() from AbstractMojo
>> or
>
> Use the getLog() as that's the plugin api. Enable logging is Plexus specific
> so you should avoid that if you can.

Are you able to elaborate on why Plexus needs it?
I'm contemplating removing it to see what happens.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message