Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 65162 invoked from network); 5 Feb 2010 10:59:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Feb 2010 10:59:45 -0000 Received: (qmail 43680 invoked by uid 500); 5 Feb 2010 10:59:45 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 43586 invoked by uid 500); 5 Feb 2010 10:59:44 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 43576 invoked by uid 99); 5 Feb 2010 10:59:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 10:59:44 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [82.198.136.225] (HELO mail.curamsoftware.com) (82.198.136.225) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 10:59:37 +0000 From: Suman N To: Ant Developers List Date: Fri, 5 Feb 2010 10:59:09 +0000 Subject: Reference not found. Thread-Topic: Reference not found. Thread-Index: AcqmUj3vO0JMRjmsQzCMU+ld9Lkk3Q== Message-ID: <86E8DA9E18BC2344BD0218BF23C88DF30142BD251182@MAIL06.curamsoftware.com> Accept-Language: en-US, en-IE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-IE Content-Type: multipart/alternative; boundary="_000_86E8DA9E18BC2344BD0218BF23C88DF30142BD251182MAIL06curam_" MIME-Version: 1.0 --_000_86E8DA9E18BC2344BD0218BF23C88DF30142BD251182MAIL06curam_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I am using Ant 1.8RC1. I have a test.xml file, which is used to execute the same set of tests for = 3 different application server environments. (ie in SUN, IBM and SAP). We c= all 3 different commands to run the tests in its corresponding environment. Example: ant suntest ant ibmtest ant saptest We set the application server specific path (sun.ejb.classpath, ibm.ejb.cla= sspath, sap. ejb.classpath) in suntest, ibmtest and saptest targets. These targets will call its corresponding targets (suntest.without.clean, i= bmtest.without.clean, ibmtest.without.clean). All these three targets will further call incontainertest, where we set the= classpath by referencing the path defined in suntest, ibmtest and saptest = targets. The truncated test.xml file is given below. We do set inheritRefs to true so that the called ant target will have refer= ences of all the path defined in the calling target, but still we get the f= ollowing error when we run any test. Reference ibm.ejb.classpath not found. I do know that the followin warning is thrown in ANT 1.7 Warning: Reference ibm.ejb.classpath has not been set at runtime, but was f= ound during build file parsing, attempting to resolve. Future versions of A= nt may support referencing ids defined in non-executed targets. If I define these path ids just under the project level, this works, but my= requirement is to define these path id's differently for different Applica= tion servers and hence, I cannot define them in a non-executed target. Is there any way in ANT 1.8RC1, where we can set these path id's differentl= y for different environments and then not get this error when setting the r= eferences to classpath. Can use any conditional while setting the classpath? Cheers, Suman.N The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you are not the intended addressee please contact the sender and dispose of this e-mail. Thank you. --_000_86E8DA9E18BC2344BD0218BF23C88DF30142BD251182MAIL06curam_--