ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <>
Subject Re: Sending mail w/links to log files
Date Thu, 06 Jun 2002 19:59:34 GMT
That would be pretty site dependent on how those links would be constructed.
Are you putting log files under a web server or FTP server?  Or are you
getting to them through the local filesystem or network share mappings?
Keep in mind that MailLogger does not require the log file to be written as
a file, so its quite a different situation.

CruiseControl and Anthill both send e-mails with links to the web server
that serves the logs - in case that is relevant to your needs.

You could simply create your own BuildListener that would do this - although
without digging into the code I'm not sure how you'd get the log file name
that Ant is using.  The old mail logger that we had on the Ant FAQ required
a specific filename - but that is too rigid.  You'll likely want to use
the -logfile switch, otherwise you'll have to write your own BuildLogger to
write out the file.

I can't wait to see what solutions you come up with on this.  Will, no
doubt, be slick.


----- Original Message -----
From: "Diane Holt" <>
To: <>
Sent: Thursday, June 06, 2002 3:03 PM
Subject: Sending mail w/links to log files

> Looking at the doc for MailLogger, it looks like it includes the logging
> output in the mail it sends -- has anyone done a mail-at-build's-end that
> just includes links to the log file(s) instead? (I know I could do it in
> an external script, but I was hoping to avoid that.)
> Thanks,
> Diane
> =====
> (
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> --
> To unsubscribe, e-mail:   <>
> For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message