ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: [ANN] Collecting requirements for Ant2
Date Fri, 16 Mar 2001 10:10:01 GMT
Thomas Leonhardt <> wrote:

>> > I tried to build a workaround by setting a property but the
>> > problem is that I can't override properties and properties
>> > defined inside a target seem to be local, I can't use them in
>> > other targets.
>> Could you please explain this a little? Properties are global, but
>> those set in sub builds - the things you run via <ant> or <antcall>
>> will not be transferred back to the parent build.
> The problem is that I want to find out if the stuff I checked out
> does compile. If it compiles everything is fine, if not I want to be
> able to inform the user.
> (for xml source please see end of mail)

BTW, wenn Du Umlaute in Kommentaren benutzen möchtest, solltest Du 
<?xml version="1.0" encoding="ISO-8859-1" ?> an den Anfang setzen,
"benoetigt" sieht blöd aus 8-)

OK, back to English - errm, my version of it.

I still think, you could simply write a build listener, that catches
the exception thrown by <javac> (doesn't antcall propagate the
exception and therefore terminate your build anyway?) and reports the

Something like the BuildListener from the FAQ -
- but it would check, whether target and task are "correct" and ignore
all other errors.


View raw message