OK, i add a FileAppender into maven 's log4j.properties and set it up
to use my file.
Console gives more data than my FileAppender.

When the build fails, my FileAppender does not contain the error!!!!

Any suggestion?

-D


On Wed, 15 Dec 2004 21:51:40 -0800, dan tran <[EMAIL PROTECTED]> wrote:
> My requirement is to stop the build when a subproject fail, then
> extract the log portion of the fail project and email it out the the
> developers in the POM
> 
> I will look into log4j to see what I can do
> 
> Big thanks
> 
> -Dan
> 
> 
> On Thu, 16 Dec 2004 06:41:26 +1100, Brett Porter <[EMAIL PROTECTED]> wrote:
> > you can intercept the failure, but not mail the output at this point.
> > I use cruise control instead, but if all you need is to send a mail
> > that indicates failure, the reactor lets you ignore failures, then get
> > a list of failed projects afterwards.
> >
> > You could potentially tweak log4j to get most of the output to a file
> > and then mail that - if you go down that path, please post a HOWTO for
> > others :)
> >
> > - Brett
> >
> >
> > On Wed, 15 Dec 2004 13:55:28 -0500, Erik Husby <[EMAIL PROTECTED]> wrote:
> > > dan tran wrote:
> > >
> > > >Hello, I am going to port our legacy build system to maven.
> > > >The build system will use maven-multiproject build all artifacts.
> > > >
> > > >When one of the projects fail to build, I would like to extract
> > > >the maven (stdout and sterr) log of failed project in order to send
> > > >email  out to the developer of the project
> > > >
> > > >Does maven provide capability to extract maven log (stdout and stderr) of
> > > >the fail sure project?
> > > >
> > > >Can I intecept maven to call a goal (like sending email ) when the build 
> > > >fail?
> > > >
> > > >Many thanks ahead!!!
> > > >
> > > >-Dan
> > > >
> > > >---------------------------------------------------------------------
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > Not directly. Suggest you look into either CruiseControl or Anthill for
> > > a build system that knows how fetch from source control, build, and
> > > notify developers.
> > >
> > > --
> > > Erik Husby
> > > Team Lead for Software Quality Automation
> > > Broad Institute of MIT and Harvard
> > > Rm. 2192  320 Charles St
> > > Cambridge, MA 02141-2023
> > > mobile: 781.354.6669, office: 617.258.9227, [EMAIL PROTECTED]
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to