You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Heiko Kundlacz <he...@qnamic.com> on 2005/04/18 16:46:00 UTC

M1: which class is responsible for goal output on console

Hi

If I add a file appender to log4j.properties in maven.jar the maven 
output will be also redirected to a file. Unfortunately not all of the 
output. The goals and error output can't be redirected to a file, as 
this output doesn't seem to be under control of log4j. Do you have any 
idea if there is a chance to redirect also this output?

Thanks

Heiko

INFO -  __  __
INFO - |  \/  |__ _Apache__ ___
INFO - | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
INFO - |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
INFO -
INFO - Starting the reactor...
INFO - Our processing order:
INFO - IX-Project-B
INFO - IX-Project-A
INFO - +----------------------------------------
INFO - | Set Build Number: IX-Project-B
INFO - | Memory: 2M/3M
INFO - +----------------------------------------
build:start:

build:
build:start:

buildnumber:setBuildNumber:


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


Re: M1: which class is responsible for goal output on console

Posted by Brett Porter <br...@gmail.com>.
Yes.

On 4/19/05, dan tran <da...@gmail.com> wrote:
> Hi Brett
> 
> Would it get fixed in m2?
> 
> It is much nicer to have maven doing this rather then resorting to shell.
> 
> 
> -D
> 
> 
> On 4/18/05, Brett Porter <br...@gmail.com> wrote:
> > Maven 1.0 is pretty inconsistent - there are some System.out's, some
> > commons logging, and some buried in werkz (which are also system.out I
> > think).
> >
> > Your best bet is to capture the output streams.
> >
> > On 4/19/05, dan tran <da...@gmail.com> wrote:
> > > I ran the same same thing few months back, and gave up
> > > on overriding log4j to send maven output to both console and a file.
> > >
> > > is it a bug? or just maven1/jelly limitation?
> > >
> > >
> > > -D
> > >
> > > On 4/18/05, Heiko Kundlacz <he...@qnamic.com> wrote:
> > > > Hi
> > > >
> > > > If I add a file appender to log4j.properties in maven.jar the maven
> > > > output will be also redirected to a file. Unfortunately not all of the
> > > > output. The goals and error output can't be redirected to a file, as
> > > > this output doesn't seem to be under control of log4j. Do you have any
> > > > idea if there is a chance to redirect also this output?
> > > >
> > > > Thanks
> > > >
> > > > Heiko
> > > >
> > > > INFO -  __  __
> > > > INFO - |  \/  |__ _Apache__ ___
> > > > INFO - | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > > > INFO - |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
> > > > INFO -
> > > > INFO - Starting the reactor...
> > > > INFO - Our processing order:
> > > > INFO - IX-Project-B
> > > > INFO - IX-Project-A
> > > > INFO - +----------------------------------------
> > > > INFO - | Set Build Number: IX-Project-B
> > > > INFO - | Memory: 2M/3M
> > > > INFO - +----------------------------------------
> > > > build:start:
> > > >
> > > > build:
> > > > build:start:
> > > >
> > > > buildnumber:setBuildNumber:
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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


Re: M1: which class is responsible for goal output on console

Posted by dan tran <da...@gmail.com>.
Hi Brett

Would it get fixed in m2?

It is much nicer to have maven doing this rather then resorting to shell.



-D


On 4/18/05, Brett Porter <br...@gmail.com> wrote:
> Maven 1.0 is pretty inconsistent - there are some System.out's, some
> commons logging, and some buried in werkz (which are also system.out I
> think).
> 
> Your best bet is to capture the output streams.
> 
> On 4/19/05, dan tran <da...@gmail.com> wrote:
> > I ran the same same thing few months back, and gave up
> > on overriding log4j to send maven output to both console and a file.
> >
> > is it a bug? or just maven1/jelly limitation?
> >
> >
> > -D
> >
> > On 4/18/05, Heiko Kundlacz <he...@qnamic.com> wrote:
> > > Hi
> > >
> > > If I add a file appender to log4j.properties in maven.jar the maven
> > > output will be also redirected to a file. Unfortunately not all of the
> > > output. The goals and error output can't be redirected to a file, as
> > > this output doesn't seem to be under control of log4j. Do you have any
> > > idea if there is a chance to redirect also this output?
> > >
> > > Thanks
> > >
> > > Heiko
> > >
> > > INFO -  __  __
> > > INFO - |  \/  |__ _Apache__ ___
> > > INFO - | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > > INFO - |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
> > > INFO -
> > > INFO - Starting the reactor...
> > > INFO - Our processing order:
> > > INFO - IX-Project-B
> > > INFO - IX-Project-A
> > > INFO - +----------------------------------------
> > > INFO - | Set Build Number: IX-Project-B
> > > INFO - | Memory: 2M/3M
> > > INFO - +----------------------------------------
> > > build:start:
> > >
> > > build:
> > > build:start:
> > >
> > > buildnumber:setBuildNumber:
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>

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


Re: M1: which class is responsible for goal output on console

Posted by Brett Porter <br...@gmail.com>.
Maven 1.0 is pretty inconsistent - there are some System.out's, some
commons logging, and some buried in werkz (which are also system.out I
think).

Your best bet is to capture the output streams.

On 4/19/05, dan tran <da...@gmail.com> wrote:
> I ran the same same thing few months back, and gave up
> on overriding log4j to send maven output to both console and a file.
> 
> is it a bug? or just maven1/jelly limitation?
> 
> 
> -D
> 
> On 4/18/05, Heiko Kundlacz <he...@qnamic.com> wrote:
> > Hi
> >
> > If I add a file appender to log4j.properties in maven.jar the maven
> > output will be also redirected to a file. Unfortunately not all of the
> > output. The goals and error output can't be redirected to a file, as
> > this output doesn't seem to be under control of log4j. Do you have any
> > idea if there is a chance to redirect also this output?
> >
> > Thanks
> >
> > Heiko
> >
> > INFO -  __  __
> > INFO - |  \/  |__ _Apache__ ___
> > INFO - | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > INFO - |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
> > INFO -
> > INFO - Starting the reactor...
> > INFO - Our processing order:
> > INFO - IX-Project-B
> > INFO - IX-Project-A
> > INFO - +----------------------------------------
> > INFO - | Set Build Number: IX-Project-B
> > INFO - | Memory: 2M/3M
> > INFO - +----------------------------------------
> > build:start:
> >
> > build:
> > build:start:
> >
> > buildnumber:setBuildNumber:
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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


Re: M1: which class is responsible for goal output on console

Posted by dan tran <da...@gmail.com>.
I ran the same same thing few months back, and gave up 
on overriding log4j to send maven output to both console and a file.

is it a bug? or just maven1/jelly limitation?


-D

On 4/18/05, Heiko Kundlacz <he...@qnamic.com> wrote:
> Hi
> 
> If I add a file appender to log4j.properties in maven.jar the maven
> output will be also redirected to a file. Unfortunately not all of the
> output. The goals and error output can't be redirected to a file, as
> this output doesn't seem to be under control of log4j. Do you have any
> idea if there is a chance to redirect also this output?
> 
> Thanks
> 
> Heiko
> 
> INFO -  __  __
> INFO - |  \/  |__ _Apache__ ___
> INFO - | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> INFO - |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
> INFO -
> INFO - Starting the reactor...
> INFO - Our processing order:
> INFO - IX-Project-B
> INFO - IX-Project-A
> INFO - +----------------------------------------
> INFO - | Set Build Number: IX-Project-B
> INFO - | Memory: 2M/3M
> INFO - +----------------------------------------
> build:start:
> 
> build:
> build:start:
> 
> buildnumber:setBuildNumber:
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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