Ah ah, nice! Sine I have not much time tonight, this is good news :)
Cheers,
Stéphane
On 1/26/06, Jörg Schaible <[EMAIL PROTECTED]> wrote:
> Hi Stéphane,
>
> Stephane Nicoll wrote on Thursday, January 26, 2006 9:50 AM:
>
> > Well, rebuild the eclipse plugin and use it :)
> >
> > Sorry, I had no time yesterday to look more into it. I'll check today.
>
> Finally solved my problem. I had no output, since the default Log4j
> configuration sets the level of the root category to ERROR and only for
> categories org.apache.maven and org.apache.commons.jelly.tags.log to INFO.
> That made the difference, since my package for the plugin is different. So I
> use now directly a Log4J logger in my code and initialize it with the current
> log level for org.apache.maven. Additionally I detected, that the provided
> JellyContext already holds a Ant project, that can be used to execute Ant
> tasks and that will also automatically inherit the automated logging for the
> tasks (which I only enable for DEBUG level, since I do quite a lot):
>
> ======== %< =========
> logger.setLevel(Logger.getLogger("org.apache.maven").getLevel());
> if (logger.isDebugEnabled()) {
> this.ant = project.getContext().getAntProject();
> } else {
> this.ant = new org.apache.tools.ant.Project();
> ant.init();
> }
> ======== %< =========
>
> Thanks for your efforts though.
>
> - Jörg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
.::You're welcome ::.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]