Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 96757 invoked from network); 18 Jun 2004 14:01:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Jun 2004 14:01:32 -0000 Received: (qmail 94579 invoked by uid 500); 18 Jun 2004 14:01:20 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 94461 invoked by uid 500); 18 Jun 2004 14:01:19 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 94443 invoked by uid 99); 18 Jun 2004 14:01:19 -0000 Received: from [62.96.16.111] (HELO bodewig.bost.de) (62.96.16.111) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 18 Jun 2004 07:01:19 -0700 Received: (from bodewig@localhost) by bodewig.bost.de (8.11.6/8.11.6) id i5IE13j29098; Fri, 18 Jun 2004 16:01:03 +0200 X-Authentication-Warning: bodewig.bost.de: bodewig set sender to bodewig@apache.org using -f To: dev@ant.apache.org Subject: Re: cvs commit: ant/docs/manual/CoreTasks fail.html X-Draft-From: ("nnfolder:mail.jakarta-ant" 60397) References: <20040618134109.81780.qmail@web20420.mail.yahoo.com> From: Stefan Bodewig Date: Fri, 18 Jun 2004 16:01:03 +0200 In-Reply-To: <20040618134109.81780.qmail@web20420.mail.yahoo.com> (Matt Benson's message of "Fri, 18 Jun 2004 06:41:09 -0700 (PDT)") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Fri, 18 Jun 2004, Matt Benson wrote: >> And there is at least one OS - OpenVMS - where 0 means no success, >> but Java returns 0 for success on it as well, breaking the contract >> for DCL scripts. > > I remembered this, but did not attempt to "manufacture" an > alternative "successful" status code. It would be nice if we could > figure out a way to make everything work as expected on that OS. My guess - I left OpenVMS before there was a Java VM for it - is that OpenVMS users expect any Java program to return 0 on success. > Would 1 be the most basic "successful" exit status? IIRC 1 is the defintion of EXIT_SUCCESS in , so 1 would be the most common choice for C programs. > Also, I found in the course of composing this missive > that there is a comment in Execute.isFailure(int > exitValue) saying that ODD exit codes indicate > failure, then returns (exitValue % 2 == 0). I will > commit the s/odd/even here. My fault. Thank you for spotting it. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org