ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ajack" <>
Subject RE: MailLogger and Sound
Date Mon, 03 Jun 2002 18:44:04 GMT
Thanks for your reply, you helped me find one mistake.

I tried:

1)	First, to insert these into my build file

				              	 <!-- set MailLogger properties -->
        <property name="MailLogger.mailhost"
        <property name="MailLogger.from"
        <property name="MailLogger.failure.notify"      value="yes"/>
        <property name="MailLogger.success.notify"      value="yes"/>
        <property name=""  value=""/>
        <property name=""  value=""/>

but I was told I was missing a MailLogger.from.

Note: The 'odd' only thing I do is I have this (along with my re-usable
scripts parts) included into my build.xml using an XML entity.

It seemed that MailLogger.from only seemed to be picked up from a -D set

2) So I tried:

	ant ...



Note: I *now* see I was missing the .file at the end of what I did. *** When
I put it correctly it works. ***

As such: user error.

The only thing that I'd prefer to see (assuming this isn't user error also)
is that I could set the properties (at least as defaults) in my build file.
It'd seem nice to be able to register a MailLogger on a build w/o having to
do it on the command line, but maybe that is some futures thing.


-----Original Message-----
From: Erik Hatcher []
Sent: Monday, June 03, 2002 12:26 PM
To: Ant Users List;
Subject: Re: MailLogger and Sound

Re: MailLogger

I have a sample build file:

<project name="MailLogger example" default="test">
  <property file=""/>

  <target name="test">
    <echo message="hello out there"/>

  <target name="fail"><fail/></target>

And ran it this way:

    ant -logger fail is:

MailLogger.from = my@email.address = my@email.address
MailLogger.mailhost = localhost = my@email.address
MailLogger.success.subject = ${} - Build success
MailLogger.failure.subject = FAILURE - ${}
MailLogger.success.notify = off

And all worked fine.  Also, it works fine if I remove the <property file>
and use

Could you provide more details of your situation?


p.s. I'm running Beta2 (actually from the 1.5 branch, so not quite the
release, but pretty close)

----- Original Message -----
From: "ajack" <>
To: <>
Sent: Monday, June 03, 2002 2:00 PM
Subject: MailLogger and Sound

> FWIIW I am using Ant 1.5 beta 2 (although I've never tested these things
> older Ants, so am not saying this is a beta2 bug, it could easily be
> user/environment error.)
> MailLogger:
> I do not seem able to set the properties required for MailLogger from
> the build file [with the properties task], only on the command line
> [with -D]. Further I do not seem able to specified these properties in a
> properties file I specify on the command line. Is this intended for some
> reason?
> Sound:
> I get none.
> I don't know when I am supposed to  "register" this task (it seems more
> an Event than a task since it operates at "end of build", I think, w/
> success/failure.) I have JDK 1.3 but nothing seems to occur.
> I tried registering (taskdef) the AntSoundPlayer class but got an error.
> Thanks in advance for any assistance.
> regards
> Adam
> --
> Open Business Interchange: <>
> The Revolutionary B2Bi Web Service ...
> --
> To unsubscribe, e-mail:   <>
> For additional commands, e-mail: <>

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

View raw message