Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 99956 invoked from network); 11 Jul 2002 16:32:01 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 11 Jul 2002 16:32:01 -0000 Received: (qmail 2192 invoked by uid 97); 11 Jul 2002 16:31:50 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 2103 invoked by uid 97); 11 Jul 2002 16:31:49 -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 2030 invoked by uid 98); 11 Jul 2002 16:31:49 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <20020711163132.9767.qmail@web10803.mail.yahoo.com> Date: Thu, 11 Jul 2002 17:31:32 +0100 (BST) From: =?iso-8859-1?q?Jose=20Alberto=20Fernandez?= Subject: Re: enhancement, it's done, but do you like how it works? To: Ant Developers List , nicolaken@apache.org In-Reply-To: <3D2DAE69.6080608@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --- Nicola Ken Barozzi wrote: > Jose Alberto Fernandez wrote: > ... > > The fact that it is NOT a string. If you use a > string > > you will have to parse the data. What does it > happen > > if you have something like: > > > > value="super.targetname"/> > > > > > > How do you know "parent" needs to be rewritten? > > Rewritten? I don't understand... > What does your code do if you have two levels of import? > > By the way, the exact syntax of the property is > not > > the point. The important points are: > > > > 1) Make dificult to clash with current buildfiles: > > > > "ant::" > > Instead of super I can use ant::super::targetname or > anything else, it's > just an implementation issue. > The whole point is to have that as a property so you do not get confuse with regular text. > > Try this, it works: > > > > > > > > > Could you please add snippets that fail to work with > current import > proposed implementation, so that I can understand > you better right away > and maybe propose a solution? Take the snipped above, and lets assume it is in file buildA.xml with its import in buildB.xml. Define buildC.xml as: Now ${mbextra} should expand to "super.super.mb2" and not to "super.mb2" since the super is the target in "buildB.xml". But the above code will call the one in buildA.xml. (If I understood you translation correctly). As for the solution, the translation scheme I proposed in my previous message will do. Jose Alberto __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: