Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 57365 invoked from network); 20 Nov 2001 11:15:28 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 20 Nov 2001 11:15:28 -0000 Received: (qmail 16932 invoked by uid 97); 20 Nov 2001 11:15:38 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 16916 invoked by uid 97); 20 Nov 2001 11:15:38 -0000 Mailing-List: contact ant-dev-help@jakarta.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 ant-dev@jakarta.apache.org Received: (qmail 16895 invoked from network); 20 Nov 2001 11:15:37 -0000 Message-ID: <019801c171b4$ad4cfb80$6401a8c0@darden.virginia.edu> From: "Erik Hatcher" To: "Ant Developers List" References: <6441C8214DCFA942B51C0973BCF74DAC07EAAF@evelyn.barclaycard.co.uk> Subject: Re: Property Precedence Date: Tue, 20 Nov 2001 06:15:35 -0500 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 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Joe, This is really an ant-user question, but I'll go ahead and reply here. Really the only rule is that properties are immutable and cannot be changed after they have been set. Setting a property on the command-line takes ultimate precedence (with -Dprop=val), and from then on its the order of property setting in your build.xml that counts. [There are a few notable exceptions with regards to property setting. See , , , and - but these all have fairly good reasons for doing what they do] The rules of properties won't change in Ant 1.x - so you have no worries at this point of things changing. If you pose a more concrete example of what is not working properly for you, on ant-user please, you'll very likely find that its not quite as complex as you think! :) Erik ----- Original Message ----- From: "Walker Joe" To: "'Ant Developers List'" Sent: Tuesday, November 20, 2001 6:05 AM Subject: Property Precedence > > If more than one thing sets a property, the rules as to which value is used > seem to be complex and undocumented. > > I want to have build.xml files which are not generally modified, but that > can be customised using a properties file. This can't be done easily with > the complex and undocumented property precedence rules. > > Have I just not looked hard enough? > Should I dig into the code and write documentation? > There seemed to be some idea some time ago that the rules surrounding > property where about to change is this still the case - am I wasting my > time? > > Joe. > > > > Legal Disclaimer:- > > Internet communications are not secure and therefore the > Barclays Group does not accept legal responsibility for the > contents of this message. Although the Barclays Group > operates anti-virus programmes, it does not accept > responsibility for any damage whatsoever that is caused > by viruses being passed. Any views or opinions presented > are solely those of the author and do not necessarily > represent those of the Barclays Group. > > Replies to this e-mail may be monitored by the Barclays > Group for operational or business reasons. > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: