Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 92054 invoked from network); 12 Mar 2003 16:27:35 -0000 Received: from duck.inebraska.com (199.184.119.6) by daedalus.apache.org with SMTP; 12 Mar 2003 16:27:35 -0000 Received: from NetS618 (oma-hs1-025.inetnebr.com [206.222.220.69]) by duck.inebraska.com (8.12.7/8.12.7) with SMTP id h2CGRS7H019853 for ; Wed, 12 Mar 2003 10:27:35 -0600 (CST) Message-ID: <00ef01c2e8b2$5913fca0$0401a8c0@BusinessOmaha.com> From: "Info" To: "Ant Users List" References: <002a01c2e82c$4dffa5c0$0401a8c0@BusinessOmaha.com> <005401c2e834$f8dece50$1219570f@ranier> Subject: Re: exit codes (s/b KJS#00005(20030311a)) Date: Wed, 12 Mar 2003 10:13:05 -0600 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.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 1. if you anything you can get the result code into a property; look up p124-131 for xml and ?ExecTask class? 2. are you trying to set the exit code of ant so that containers can call it? It could be done with a new task *and* the changes to ant.Main to pick this up and return it. ForJava I currently use System.exit(nbr); so I am not seeing the need for a new task "unless" ANT cannot see this exit value. Could the Execute class getExitValue method be used to see the System.exit value? Or is it just local to the process? Okay, back to the books to see where I am missing the answer in . In the Execute class I see methods getExitValue and setExitValue. Are these seen and usable by ANT - specificially the setExitValue? Could I use the setExitValue with "if errorlevel"? Is the value persistent? Is the value stored in system space (heap)? Can ANT see and use these values by using processing as mentioned in the #1 response? The docs seem silent to me. So, back to the books and the docs again! jimS (info@kjs-a.com) ----- Original Message ----- From: "Steve Loughran" To: "Ant Users List" Sent: Tuesday, March 11, 2003 7:16 PM Subject: exit codes (was Re: KJS#00004 Appendix_E (BookMarks) (20030311))