Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 57449 invoked from network); 9 Sep 2004 14:38:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Sep 2004 14:38:01 -0000 Received: (qmail 90611 invoked by uid 500); 9 Sep 2004 14:37:45 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 90521 invoked by uid 500); 9 Sep 2004 14:37:43 -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 90502 invoked by uid 99); 9 Sep 2004 14:37:42 -0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_20_30,HTML_MESSAGE,HTML_NONELEMENT_30_40 X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [66.218.78.126] (HELO web40509.mail.yahoo.com) (66.218.78.126) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 09 Sep 2004 07:37:41 -0700 Message-ID: <20040909143739.79447.qmail@web40509.mail.yahoo.com> Received: from [141.113.101.22] by web40509.mail.yahoo.com via HTTP; Thu, 09 Sep 2004 07:37:39 PDT Date: Thu, 9 Sep 2004 07:37:39 -0700 (PDT) From: Angeshwar Deepak Subject: Re: Recursive Ant and Properties To: Ant Users List In-Reply-To: <1094737080.41405cb8d1e93@secure.swissmail.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1160344054-1094740659=:78222" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-1160344054-1094740659=:78222 Content-Type: text/plain; charset=us-ascii Hi, Why not try using a var in some places. You can find more info here. http://ant-contrib.sourceforge.net/tasks/index.html Using this a property can be made set, echoed, unset, then reset. bye, with regards, Deepak. Victor Volle wrote: I have a problem building a big project. The structure is something like ROOT +----A | +-----A1 | +-----A2 | +----B +-----B1 +-----B2 All projects and subprojects import a common build file. The problem starts when a property (e.g. "foo") is set in a project (e.g. "A") that should have a different value in a subproject ("A1"). The build files look like: 1: 2: 3: 4: 5: 6: 7: ==> X <== 8: 9: .. do something .. 10: 11: I could now either use subant without inheriting any property. Then I can set "foo" in A1 to another value. But I want to inherit some properties and I do not want to have a long explicit list of properties that must be inherited. I would prefer to "inherit" all properties but to be able to change the property in "A1". But when "returning" to "A" the values should not be changed, so best would be a sort "scoped" properties for each subant invocation: A --- properties-of-A | ^ | | | | A1--- properties-of-A1 So if a property is not found in properties-of-A1, properties-of-A should be searched. Setting of properties should only occur in the bottom-most properties. So even if a property "foo" is already defined in properties-of-A it can be set in properties-of-A1. But after it has been defined in A1 it can not be changed anymore as usual. Perhaps there is a better solution to my problem/requirements? I am currently considering of writing my own subant with my own PropertyHelper, but would prefer a standard solution. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------- Do you Yahoo!? Shop for Back-to-School deals on Yahoo! Shopping. --0-1160344054-1094740659=:78222--