ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <Nico.Sees...@epost.de>
Subject [PATCH] Main.java Re: [PATCH] Main.java
Date Sat, 14 Oct 2000 18:34:55 GMT
Unfortunately this has introduced a small bug since findBuildFile throws a
BuildException if it does not find one and *this* Exception is *not* handled
by the DefaultLogger. So I have changed findBuildFile to throw a
RuntimeException which is a little ugly but works :-)

So we should either apply this patch or do nothing at the moment and find a
clean way of handling this in 2.0...


----- Original Message -----
From: "Diane Holt" <holtdl@yahoo.com>
To: <ant-dev@jakarta.apache.org>
Sent: Saturday, October 14, 2000 3:21 AM
Subject: [PATCH] Main.java


> I have applied, and tested, Nico's code to prevent the re-printing of the
> build exception message. The patch-file is attached.
>
> Thanks, Nico.
>
> Diane
>
> =====
> (holtdl@yahoo.com)
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger - Talk while you surf!  It's FREE.
> http://im.yahoo.com/


----------------------------------------------------------------------------
----


> *** Main.java.orig Fri Oct 13 18:05:08 2000
> --- Main.java Fri Oct 13 18:06:00 2000
> ***************
> *** 125,134 ****
> --- 125,140 ----
>        *
>        * @param args Command line args.
>        */
> +
>       public static void main(String[] args) {
>           try {
>               new Main(args).runBuild();
>               System.exit(0);
> +         }
> +         catch(BuildException exc) {
> +             // BuildException already handled by DefaultLogger,
> +             // don't print them again
> +             System.exit(1);
>           }
>           catch(Throwable exc) {
>               String message = exc.getMessage();
>

Mime
View raw message