Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 33548 invoked from network); 17 Aug 2004 13:33:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Aug 2004 13:33:34 -0000 Received: (qmail 23098 invoked by uid 500); 17 Aug 2004 13:33:21 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 22958 invoked by uid 500); 17 Aug 2004 13:33:19 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 22942 invoked by uid 99); 17 Aug 2004 13:33:19 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [213.94.219.177] (HELO corvil.com) (213.94.219.177) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 17 Aug 2004 06:33:18 -0700 Received: from [172.18.1.171] (angel.local.corvil.com [172.18.1.171]) by corvil.com (8.12.9/8.12.5) with ESMTP id i7HDXFwS020435 for ; Tue, 17 Aug 2004 14:33:15 +0100 (IST) (envelope-from peterreilly@apache.org) Message-ID: <4122098E.70302@apache.org> Date: Tue, 17 Aug 2004 14:35:10 +0100 From: Peter Reilly User-Agent: Mozilla Thunderbird 0.6 (X11/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: and References: <481.1092661188@www33.gmx.net> <20040817090348.3ab5d0ad.sebastian.ssmoller@gmx.net> In-Reply-To: <20040817090348.3ab5d0ad.sebastian.ssmoller@gmx.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This does look like a mis-match between the functionalty of the and elements of . Peter sebastian ssmoller wrote: >(...) > > >>but now it seems that properties passed by are NOT >>inherited >>(?) In my project these properties are passed exactly one "level" into >>the >>newly created project. >> >>whats wrong ? >> >> > >i had a deeper look at the code and i found out that the following code >is used: > >- for >--> overwriteProperties (Ant.java) --> copyInheritedProperties >(Project.java) --> copyInheritedProperties (PropertyHelper.java) --> >setInheritedProperty (PropertyHelper.java) --> userProperties.put(...) >(PropertyHelper.java) > >- for >--> addPropertySet (Ant.java) --> initializeProject (Ant.java) --> >addAlmostAll (Ant.java) --> setNewProperty (Project.java) --> >setNewProperty (PropertyHelper.java) --> which does NOT set >userProperties.put(...) > >so why is it handled differently ? was this intented this way ? > >thx >regards, >seb > > > >>btw: i had a short look at the code. in Ant.java i read: >> >> private void overrideProperties() throws BuildException { >> // remove duplicate properties - last property wins >> // Needed for backward compatibility >> Set set = new HashSet(); >> for (int i = properties.size() - 1; i >= 0; --i) { >> >>this behaviour (read the comment) is exactly the opposite of what is >>expected i guess because the general ant behaviour is : first property >>wins >>... (just a thought). >> >> >> > >(...) > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org