Hello,

[EMAIL PROTECTED] wrote:
I already use the color logger, i wanted to put that into a file that I can
send out.
As others have pointed out, most people use the MailLogger. It will email the log even if the build fails. Otherwise, you have to write a script or your own logger to do this.

Sending a file with ANSI escape sequences will not have the desired effect because mail readers can't understand them. You would have to save the email and view it in a console window.

You could use the XmlLogger and transform the output to HTML using the <style> task and mail it. The problem is that if the build fails, your target to do the transform and mail won't be run as mentioned previously.

A better solution to this would be to extend MailLogger into an HtmlMailLogger which would send an HTML formatted version of a log.

-Bill

Michael Medwith
Flagstar Bank
Wholesale Web Development Team


|---------+---------------------------->
|         |           Dominique        |
|         |           Devienne         |
|         |           <[EMAIL PROTECTED]|
|         |           m>               |
|         |                            |
|         |           01/31/2003 03:55 |
|         |           PM               |
|         |           Please respond to|
|         |           "Ant Users List" |
|         |                            |
|---------+---------------------------->
  >------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                              |
  |       To:       "'Ant Users List'" <[EMAIL PROTECTED]>                                                             |
  |       cc:                                                                                                                    |
  |       Subject:  RE: ANT output to file                                                                                       |
  >------------------------------------------------------------------------------------------------------------------------------|




See the MailLogger in the doc. --DD

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 2:49 PM
To: [EMAIL PROTECTED]
Subject: ANT output to file


Is there a way to put the ant output on the screen to a file?  I would like
to email this to ppl on success and failure.

Michael Medwith
Flagstar Bank
Wholesale Web Development Team

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

Reply via email to