Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 10077 invoked from network); 19 Feb 2002 08:25:55 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 19 Feb 2002 08:25:55 -0000 Received: (qmail 7766 invoked by uid 97); 19 Feb 2002 08:25:09 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 7733 invoked by uid 97); 19 Feb 2002 08:25:08 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 7690 invoked from network); 19 Feb 2002 08:25:08 -0000 Message-ID: <20020219082504.3398.qmail@web13406.mail.yahoo.com> Date: Tue, 19 Feb 2002 00:25:04 -0800 (PST) From: Diane Holt Subject: Re: Ant-Property-Classpath To: ant-user@jakarta.apache.org Cc: ram66321@hotmail.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N [Note: This type of question should go to ant-user, not ant-dev; I've redirected it to that list.] --- ram g wrote: > I have a a set of build files that use proeprty tags to define > classpath, tomacthome,utility dirs that i use while building .jar files > and so on. [snip] > I attempted re-structuring the build code, by removing repetitive tags > and code. [snip] > So created a include.xml file in the root moved these property tags to > this file. > > Modified the other builds to invoke this root\include.xml in their init > target. > > When i tried executing the build, it failed saying the property values > that i had set in the root\include.xml are invalid. You can pass properties down, but not up. > What do i do to make my property tag settings @ root stay valid in all > subsequent build files ? If you don't intend to ever run the sub-project buildfiles themselves, then just always have the "root" buildfile run them (name your sub-project buildfiles something other than build.xml, if you want to execute 'ant' from a subdir but still have it run against the "root" buildfile [see the "-find" option). If you do intend to let your sub-project buildfiles be run independently, then you can either go with the "entity include" described in the FAQ at: http://jakarta.apache.org/ant/faq.html#xml-entity-include or, if you're worried about getting lost in a maze of relative paths, you could put your global properties in a property file, and have each buildfile read that file in, using: Diane ===== (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: