Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 34625 invoked from network); 21 Apr 2006 14:29:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Apr 2006 14:29:03 -0000 Received: (qmail 59511 invoked by uid 500); 21 Apr 2006 14:29:01 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 59475 invoked by uid 500); 21 Apr 2006 14:29:01 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 59462 invoked by uid 99); 21 Apr 2006 14:29:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Apr 2006 07:29:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [192.6.10.2] (HELO colossus.hpl.hp.com) (192.6.10.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Apr 2006 07:29:00 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by colossus.hpl.hp.com (Postfix) with ESMTP id 0948B6B99B for ; Fri, 21 Apr 2006 15:28:37 +0100 (BST) Received: from colossus.hpl.hp.com ([127.0.0.1]) by localhost (colossus.hpl.hp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11170-03 for ; Fri, 21 Apr 2006 15:28:32 +0100 (BST) Received: from kropotkin.hpl.hp.com (kropotkin.hpl.hp.com [16.25.191.14]) by colossus.hpl.hp.com (Postfix) with ESMTP id B8E5D6B998 for ; Fri, 21 Apr 2006 15:28:31 +0100 (BST) Received: from localhost (localhost [127.0.0.1]) by kropotkin.hpl.hp.com (Postfix) with ESMTP id 3D448572B for ; Fri, 21 Apr 2006 15:28:31 +0100 (BST) Received: from kropotkin.hpl.hp.com ([127.0.0.1]) by localhost (kropotki [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16404-02 for ; Fri, 21 Apr 2006 15:28:26 +0100 (BST) Received: from timmay.hpl.hp.com (timmay.hpl.hp.com [16.25.171.20]) by kropotkin.hpl.hp.com (Postfix) with ESMTP id B941B3DE3 for ; Fri, 21 Apr 2006 15:28:26 +0100 (BST) Received: from [16.25.171.182] (chamonix.hpl.hp.com [16.25.171.182]) by timmay.hpl.hp.com (8.13.2/8.13.2) with ESMTP id k3LESMtK006792 for ; Fri, 21 Apr 2006 15:28:22 +0100 (BST) Message-ID: <4448EC06.3030707@apache.org> Date: Fri, 21 Apr 2006 15:28:22 +0100 From: Steve Loughran User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Ant Developers List Subject: Re: Question about property name References: <88BD5A70CA8BFA4CA15D0ED053E49D690D2EE0BF@tayexc14.americas.cpqcorp.net> In-Reply-To: <88BD5A70CA8BFA4CA15D0ED053E49D690D2EE0BF@tayexc14.americas.cpqcorp.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-HPLB-IMAP-MailScanner-Information: Please contact the Helpdesk for more information X-HPLB-IMAP-MailScanner: Found to be clean X-HPLB-IMAP-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 5) X-Virus-Scanned: amavisd-new at kropotkin.hpl.hp.com X-Virus-Scanned: amavisd-new at hplb.hpl.hp.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Watson, Meg wrote: > Hi, > > We're (a couple of us here at HP) are in the process of making some > changes to better support Ant on HP's OpenVMS operating system. See > http://issues.apache.org/bugzilla/show_bug.cgi?id=39359 > > One of the changes we are making has to do with determining success or > failure based on return value. On OpenVMS, a return value of 1 (or an > odd value) signifies success, and even numbered return values signify > failure. Some of our customers rely on this, while others would like us > to act like all the other "Unix-like" platforms. We'd like to make a > property available that our customers could set to control the behavior. > Are there any guidelines for making up property names? > > We think it should be called something like os.supportVMSExit, which > when set to true would cause the VMS style return values to be used. By > default, however, the standard Unix-type return values would be used. > > At any rate, we have no interest in the actual name/spelling of the > property, so we'd like the Ant dev team's advice. > There is a formal policy that 1. new "magic" properties are not something blindly adopted 2. new "magic" properties begin with ant. This is to minimise the risk that someone else was using the property at the time and now their build suddenly has wierd side effects from a new ant version adding a new global setting. (1) doesnt mean new ones dont go in; one went in last week to allow an override of the java version for javac, but it was argued about for a while first, and went in to let people build java1.4 things on java1.5, so it was quite obvious to a lot of people and Apache gump. > Just for completeness, here's what we propose...a simple change in > Execute.java to isFailure for this...something like > > /** Controls whether we honor VMS status or standard Unix exit > status **/ > private static boolean supportVMSExit = > Boolean.getBoolean("os.supportVMSExit"); > : Exec gets used in lots and lots of places, as its the primary way that Ant shells out to the OS. so if you flip a property to change how return values get interpreted, everything that gets executed could break. And, because properties are immutable, you cannot change behaviour on a case by case basis. Now, the sole rationale for having a property to drive this behaviour is that it lets people outside of a build script to change behaviour. That is, people other than the original authors, because they can just set an attribute on the task. I think it would be more flexible to have the notion of a pluggable exit interpreter type; something that can process error codes on different platforms and do the right thing. That way anyone can add custom logic to interpret return codes for specific apps or platforms OpenVMS-specific fault handling would just be a choice of resultInterpeter="openvms" in the call. -steve --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org