This is incorrect syntax. You cannot (except using some form of
<exec>) launch an Ant build from another Ant build and attach a logger.
You must do this from the command-line.
Erik
On Wednesday, April 30, 2003, at 11:24 AM, Tony Lam wrote:
> Hi,
>
> I guess I am a newbie on Ant. I tried inside my build
> file but it seemed I couldn't get my mail sent even
> though my mailhost is working and all my email
> addresses are valid.
>
> Any suggestion or hints are welcome.
>
> <target name="test" >
> <echo>done</echo>
> </target>
>
>
> <target name="default">
> <antcall target="test">
> <param name="-logger"
> value="org.apache.tools.ant.listener.MailLogger"/>
> <param name="MailLogger.mailhost"
> value="someMailhost"/>
> <param name="MailLogger.from"
> value="someEmail"/>
> <param name="MailLogger.success.to"
> value="someOtherEmail"/>
> <param name="MailLogger.failure.to"
> value="someOtherEmail"/>
> </antcall>
> </target>
>
> Tony
> --- "Lopez, William" <william.lopez@eds.com> wrote:
>> ...just re-read your mail...sorry, you were already
>> doing that...maybe using
>> <antcall>...not tested
>>
>> <target name="default">
>> <antcall target="doSomethingElse">
>> <param name="-logger"
>> value="org.apache.tools.ant.listener.MailLogger"/>
>> <param name="-DMailLogger.properties.file"
>> value="mail_logger.properties"/>
>> </antcall>
>> </target>
>>
>> -----Original Message-----
>> From: Tony Lam [mailto:tony_lam@yahoo.com]
>> Sent: Tuesday, April 29, 2003 1:59 PM
>> To: Ant Users List
>> Subject: additional requirement for emailing upon
>> build finishing
>>
>>
>> Hi,
>>
>> This question has been brought before. However, I
>> would like to know if there is a solution for an
>> additional requirement as follow:
>>
>> I would like to send out an email indicating the
>> success or failure of mutiple build on different
>> boxes
>> using ant. I tried to use <-logger> function but it
>> only works for one build in the command line;
>> however,
>> if I use <mail> task it didn't collect the build
>> success or failure while the build process is taking
>> place.
>>
>> Are there any suggestions or hints for this
>> requirement?
>>
>> Thanks,
>> Tony
>>
>>
>> __________________________________
>> Do you Yahoo!?
>> The New Yahoo! Search - Faster. Easier. Bingo.
>> http://search.yahoo.com
>>
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> user-unsubscribe@ant.apache.org
>> For additional commands, e-mail:
>> user-help@ant.apache.org
>>
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> user-unsubscribe@ant.apache.org
>> For additional commands, e-mail:
>> user-help@ant.apache.org
>>
>
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
|