Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 1273 invoked from network); 13 Oct 2000 23:50:39 -0000 Received: from unknown (HELO mail.epost.de) (64.39.38.70) by locus.apache.org with SMTP; 13 Oct 2000 23:50:39 -0000 Received: from ns2000 (149.225.139.130) by mail.epost.de (5.1.051) id 39DCCA390004B33A for ant-dev@jakarta.apache.org; Sat, 14 Oct 2000 01:50:18 +0200 Message-ID: <005d01c03570$93361be0$828be195@ns2000> From: "Nico Seessle" To: References: <20001013215025.11320.qmail@web117.yahoomail.com> Subject: Re: task's message prints out twice Date: Sat, 14 Oct 2000 01:51:07 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "Diane Holt" To: Sent: Friday, October 13, 2000 11:50 PM Subject: task's message prints out twice > When I include a message for the target, it not only prints out > after the BUILD FAILED, adjacent to the line number in the build file > where the is -- it also prints out again, after the Total time > line. Is that expected behaviour? If it is, can it be changed? If you have a look at the output of the latest nightly build of ant (2000-10-13 at: http://jakarta.apache.org/builds/ant/nightly/2000-10-13/ant_build_log.html) you will see that you get the same for every BuildException. This could be changed by changing Main.java as follows: 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(); if (message != null) { System.err.println(message); } System.exit(1); } } but I'm too tired to test this and will not submit a patch without any little testing - someone else? Otherwise you will still need to use future alpha-versions of 1.2+ :-) > BUILD FAILED > > D:\dianeh\src\main\build.xml:864: Exiting ant build... > Total time: 1 second > Exiting ant build... > BUILD FAILED /home/rubys/jakarta-ant/build.xml:185: Only one of destfile and destdir may be set. Total time: 2 minutes 53 seconds Only one of destfile and destdir may be set.