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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 > > ===== > ([EMAIL PROTECTED]) > > > > __________________________________________________ > 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(); >
Main.patch
Description: Binary data
