Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 55609 invoked from network); 22 Jan 2001 22:12:09 -0000 Received: from unknown (HELO mail.epost.de) (64.39.38.71) by h31.sny.collab.net with SMTP; 22 Jan 2001 22:12:09 -0000 Received: from nshome (62.226.243.199) by mail.epost.de (5.1.057) id 3A6C0C320000C97E for ant-user@jakarta.apache.org; Mon, 22 Jan 2001 23:11:56 +0100 Message-ID: <00aa01c084c0$6eb53310$0100280a@nshome> From: "Nico Seessle" To: References: <462F323275D6D311BA0200805F356C52EC6CA9@lgcadev001.zycor.lgc.com> <002601c084b9$a60697c0$0100280a@nshome> <3A6CAD4C.208F43E5@actfs.co.nz> Subject: Re: getting result back from an task Date: Mon, 22 Jan 2001 23:12:38 +0100 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.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N ----- Original Message ----- From: "Bevan Arps" To: Sent: Monday, January 22, 2001 10:59 PM Subject: Re: getting result back from an task > One use: The Delphi compiler sets a result code based on whether the > compilation worked or failed. > > At the moment I have to detect success/failure based on whether specific > output files are created. > Your buildfile does not exit with "build failed" in this case? Can you post a snippet of your buildfile? (Just to make sure everything is as it should be :-) ) > FYI: > The standard for this (inherited all the way from CPM!) is zero for no > error, any other number identifies the error found. The source for this task contains if (err != 0) { if (failOnError) { throw new BuildException("Exec returned: "+err, location); } else { log("Result: " + err, Project.MSG_ERR); } } so ant generally tries to behave like expected. Let's have a look on your snippet and if it looks right I will try wo reproduce this. Nico