ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@m64.com>
Subject RE: capturing javac failing
Date Sat, 11 Nov 2000 05:32:56 GMT
Jose Alberto,

I feel it would be better to keep the listener separate from the build
file. The build file describes how to build a project and a listener
isn't really involved in that - it doesn't (shouldn't) affect the build.
In other words we should keep the model and the view independent.

Conor


> -----Original Message-----
> From: Jose Alberto Fernandez [mailto:JFernandez@viquity.com]
> Sent: Saturday, 11 November 2000 5:55
> To: 'ant-dev@jakarta.apache.org'
> Subject: RE: capturing javac failing
>
>
> This reminds me, how dificult would it be to allow
> listeners to be declared in the build.xml file?
>
> It cannot be just a task, but something interpreted
> during parsing of the XML file.
>
> <project ..... listener="className" />
>
> or
>
> <project ....>
>   <listen classname="FQCN">
>     <classpath idref="..." />
>   </listen>
> ...
> </project>
>
> What do people think???
>
> Maybe it should be a datatype.
>
> Jose Alberto
>
> > -----Original Message-----
> > From: Stefan Bodewig [mailto:bodewig@bost.de]
> > Sent: Friday, November 10, 2000 2:20 AM
> > To: ant-dev@jakarta.apache.org
> > Subject: Re: capturing javac failing
> >
> >
> > Stuart Barlow <sbarlow@peopledoc.com> wrote:
> >
> > > I want to send a mail if the javac task fails in my ant
> based build.
> > > Is this possible?
> >
> > Yes, using a BuildListener, it might be a little bit tricky
> > though. Let me see, if Jyve works today, yes:
> >
> > See
> > <http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayQues
> tionAnswer/action/SetAll/project_id/2/faq_id/16/topic_id/196/q
> uestion_id/741
> >
> for a start.
>
> You'll probably want to track which task is currently running to see
> whether it was a javac task that caused the BuildException if there is
> one.
>
> Stefan
>


Mime
View raw message