Robert Hanson wrote:
>
> I have a cruisecontrol.net setup to build my project.  The actual 
> build happens with nant.  The email I get after a build only shows the 
> error that terminated the build (if any) plus warnings (if any).  How 
> can I get the actual nant output into that email?
>
Are you currently using CC.Net or NAnt to send the email?

If the former, change the template used by CC.Net, specified in either 
server/ccnet.exe.config or server/ccservice.exe.config, depending upon 
whether you're running CC.Net as a command line tool or as a service.  
See 
http://confluence.public.thoughtworks.org/display/CCNET/Server+Application+Config+File
 


If the latter, see the docs about mail loggers 
(http://nant.sourceforge.net/nightly/latest/help/fundamentals/listeners.html).

There are other alternatives, including building your own mail message 
in NAnt and sending it with the <mail> task, possibly triggered by the 
nant.onsuccess or nant.onfailure properties (see 
http://nant.sourceforge.net/nightly/latest/help/fundamentals/properties.html 
and http://nant.sourceforge.net/nightly/latest/help/tasks/mail.html), or 
using the NAntContrib <record> task (see 
http://nantcontrib.sourceforge.net/nightly/latest/help/tasks/record.html).

Personal opinion:  If you do anything big, you'll quickly find that the 
NAnt log in email is too big to be useful, especially if you do NUnit or 
NCover stuff.  I find it much easier to use the CC.Net web dashboard to 
see things.

Gary



_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to