ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Euan Guttridge <EGuttri...@buildonline.com>
Subject RE: notification of failed javac
Date Mon, 16 Dec 2002 12:19:36 GMT
Just what I need, even has an SSH task. Thanks.

Open question: Could these tasks be considered for inclusion in the next
release of Ant?


-----Original Message-----
From: Dale Anson [mailto:danson@germane-software.com]
Sent: 13 December 2002 21:36
To: Ant Users List
Subject: Re: notification of failed javac


Check out the "Try" task that is distributed with Antelope 
(http://antelope.sourceforge.net). It lets you do things like:

<try>
    <javac .../>
    <catch>
        <mail .../>
        <fail message="javac failed"/>
    </catch>
</try>

Documentation for this task is at http://antelope.sourceforge.net/manual.

Euan Guttridge wrote:

>Is there a way to send an email *if* a [javac] compile fails?
>
>One way I can think of is to set the failonerror="false" property and then
>use an "if" clause on the next task - but I can't work out how to set the
>property in the javac task *if* it fails... 
>
>
>
>Thanks
>
>--
>To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>  
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message