Bugs item #788650, was opened at 2003-08-14 13:08
Message generated for change (Comment added) made by drieseng
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=788650&group_id=31650

Category: Core
>Group: 0.85
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Gert Driesen (drieseng)
Summary: XmlLogger should indicate build success/failure

Initial Comment:
I'm using XmlLogger for build reports, and failures
aren't indicated (if an exception's thrown, there's
nothing in the log about it).

I've copied over some of the code from the default
logger to summarise in BuildFinished; it simply prints
a final log message. This lets us tell quickly what
went wrong when builds fail.

----------------------------------------------------------------------

>Comment By: Gert Driesen (drieseng)
Date: 2004-02-29 18:13

Message:
Logged In: YES 
user_id=707851

This is now fixed in cvs.  When a build fails, a <failure> node 
will be constructed, containing information on the cause of 
the build failure.

----------------------------------------------------------------------

Comment By: Gert Driesen (drieseng)
Date: 2003-08-19 10:06

Message:
Logged In: YES 
user_id=707851

I certainly don't think its a good idea to commit the patch as 
is, as it wouldn't allow for easy checking whether a build 
succeeded or not.

Your last proposal also doesn't make much sense, as there is 
no final message as such at the end of a build.

All proposals are welcome ... but that doesn't mean they're all 
good (at least not in my opinion) :-)

----------------------------------------------------------------------

Comment By: Joseph Walton (josephw)
Date: 2003-08-19 00:46

Message:
Logged In: YES 
user_id=847250

(I wasn't logged in when I sent the original patch.)

I like this idea of indicating whether or not the build
succeeded in the data so it's easy to check with XSL -
perhaps an optional 'exception' element could be included
instead?

Something like:

<build project=''>
 ...
 <result>Final message.
 <exception>[full text of thrown exception]</exception>
 </result>
</build>

With that, "//exception" gives a summary of everything that
went wrong. (Is this any better than "//result/@status !=
'success'"? Not sure. (I'm trying to accomodate nested
builds here.)

However I think, before adjusting the schema, it's important
to make sure all the information is in there. Hopefully
then, and when some good report transformations are written,
it'll be clearer what form is best.

I would appreciate this patch being included as-is;
XmlLogger really needs this if it's to be used for automated
builds, even if it's perhaps not the best long-term format.
(Self-interest: we need it locally, and I'd rather not have
to maintain a patched release.)

----------------------------------------------------------------------

Comment By: Gert Driesen (drieseng)
Date: 2003-08-17 15:30

Message:
Logged In: YES 
user_id=707851

The reason why this is not implemented yet, is because I 
wanted some more input regarding the xml schema to use for 
the xml logger.

Currently the layout of the xml logger output is something like 
this :

<buildresults project="...">
   <message level="Info">....</message>
   <target name="...">
      <task name="...">
         ....
      </task>
   </target>
</buildresults>

we could rename the "buildresults" node to "build", and add a 
result node under that node with a status attribute (with 
possible values "failure" or "success") and output the details 
of the build failure as content of that node.

eg.

<build project="...">
   <result status="Failure">
      Unable to ....
   </result>
</build>

what do you think ?





----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=788650&group_id=31650


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to