Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 96540 invoked from network); 27 Feb 2008 09:44:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2008 09:44:29 -0000 Received: (qmail 89038 invoked by uid 500); 27 Feb 2008 09:44:23 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 89001 invoked by uid 500); 27 Feb 2008 09:44:23 -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 88990 invoked by uid 99); 27 Feb 2008 09:44:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2008 01:44:23 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xavier.hanin@gmail.com designates 64.233.184.232 as permitted sender) Received: from [64.233.184.232] (HELO wr-out-0506.google.com) (64.233.184.232) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2008 09:43:47 +0000 Received: by wr-out-0506.google.com with SMTP id c55so3860428wra.0 for ; Wed, 27 Feb 2008 01:43:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=w5eBVKpvZx3rY6oXEKlM9/Cd1F4x+XkstUwWY4SInbo=; b=dXJmpIzHXeua7I3cSCvF8Dy9/U5ZTY30Rfw+5wF2S0ymeS/4B3Bh+A0ImqJMjkCiai1Jsl3GHORPN6INm8CSaa7NOwybVWRUb7j6KrBQVp4O3pObysshZ3aX6QTXp3pPQPLI9M5k65PSh3ZDGInrfMLPqfDrTlFM0q44WLM96yU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=uxqTA59KOd63IY6bU4XlmX6Db3J8aVki/y5oEmOHfND39GE9S9tbTHm6hq4hbDcutMvEHA9nbqtwsLEeS0cX3vIrO70o89K+hGTFNcjfXErPJZgZcNe7iXe/E/Gz2UYagps0wThjeK4AQphcoeS96J0gNge9iaK8G4V7KyvLnFc= Received: by 10.140.82.38 with SMTP id f38mr4289212rvb.27.1204105435064; Wed, 27 Feb 2008 01:43:55 -0800 (PST) Received: by 10.140.225.10 with HTTP; Wed, 27 Feb 2008 01:43:55 -0800 (PST) Message-ID: <635a05060802270143m40950831pc86d96dbb1a8a4e2@mail.gmail.com> Date: Wed, 27 Feb 2008 10:43:55 +0100 From: "Xavier Hanin" To: "Ant Developers List" Subject: Ivy settings ant error MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11970_17002189.1204105435061" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_11970_17002189.1204105435061 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, In latest Ivy version we have changed the way to load settings, using a task instead of a datatype, but still using an id attribute. The code of the task is available here: https://svn.apache.org/repos/asf/ant/ivy/core/trunk/src/java/org/apache/ivy/ant/IvyAntSettings.java A user is complaining (see forwarded e-mail) about a warning message from Ant: Warning: Reference ivy.instance has not been set at runtime, but was found during build file parsing, attempting to resolve. Future versions of Ant may support referencing ids defined in non-executed targets. Any idea what can be wrong? Is it related to our implementation of the settings task? Any help from Ant gurus would be welcome :-) Xavier ---------- Forwarded message ---------- From: Neil Lott Date: Sun, Feb 24, 2008 at 6:03 PM Subject: ant error To: Ivy User User I have multiple build.xml files that each import a common.xml file. I also have a productbuild.xml file that imports the common.xml file and makes antcalls on sets of build.xml files. When I run my individual module build.xml everything works fine. When I run my productbuild.xml file that makes antcall's to each build.xml I see the following error: Warning: Reference ivy.instance has not been set at runtime, but was found during build file parsing, attempting to resolve. Future versions of Ant may support referencing ids defined in non-executed targets. Each build.xml will call the following macrodef regardless of whether the build.xml file is executed standalone or from an antcall from the productbuild.xml Since my ivy setting file doesn't change I make this call once in my initialization target. .... Since we have a large project I have it so my common-init target is called once when the product build.xml is started and then the build.xmls are smart enough not to call it again. But if I'm just running my build.xml standalone then the build.xml knows to call common-init target. Here's the full ant log with verbose calling a build.xml file from the productbuild.xml via an antcall Warning: Reference ivy.instance has not been set at runtime, but was found during build file parsing, attempting to resolve. Future versions of Ant may support referencing ids defined in non-executed targets. [ivy:settings] Loading jar:file:/Users/neil/Business/ SnowyRangeConsulting/projects/twc/thirdparty/apache-ant-1.7.0/lib/ ivy.jar!/org/apache/ivy/core/settings/ivy.properties Override ignored for property "ivy.log.modules.in.use" Override ignored for property "ivy.resolver.default.check.modified" Override ignored for property "ivy.default.always.check.exact.revision" Override ignored for property "ivy.retrieve.pattern" Override ignored for property "ivy.configurations" Override ignored for property "ivy.buildlist.ivyfilepath" Override ignored for property "ivy.status" Override ignored for property "ivy.resolve.default.type.filter" Override ignored for property "ivy.project.dir" Override ignored for property "ivy.dep.file" Override ignored for property "ivy.settings.file" Override ignored for property "ivy.report.output.pattern" Override ignored for property "ivy.cache.ttl.default" Override ignored for property "ivy.publish.src.artifacts.pattern" Override ignored for property "ivy.deliver.ivy.pattern" Override ignored for property "ivy.build.artifacts.dir" Override ignored for property "ivy.checksums" Override ignored for property "ivy.distrib.dir" Override ignored for property "ivy.lib.dir" [ivy:settings] :: loading settings :: file = /Users/neil/Business/ SnowyRangeConsulting/projects/twc/depot/server/releases/main-ivy/ivy- settings.xml [ivy:settings] settings loaded (8ms) [ivy:settings] default cache: /Users/neil/Business/ SnowyRangeConsulting/projects/twc/thirdparty/ivy/cache [ivy:settings] default resolver: chained [ivy:settings] -- 3 resolvers: [ivy:settings] chained [chain] [local, shared] [ivy:settings] local [file] [ivy:settings] shared [ssh] [ivy:resolve] using ivy parser to parse file:/Users/neil/Business/ SnowyRangeConsulting/projects/twc/depot/server/releases/main-ivy/share/ db/ivyif.xml [ivy:resolve] :: resolving dependencies :: twc#mas-dbif;working@ flicker.local [ivy:resolve] confs: [interface] [ivy:resolve] validate = true [ivy:resolve] refresh = false -- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://ant.apache.org/ivy/ http://www.xoocode.org/ ------=_Part_11970_17002189.1204105435061--