Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 62597 invoked from network); 1 Oct 2008 10:08:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Oct 2008 10:08:05 -0000 Received: (qmail 2475 invoked by uid 500); 1 Oct 2008 10:08:04 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 2450 invoked by uid 500); 1 Oct 2008 10:08:03 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 2441 invoked by uid 99); 1 Oct 2008 10:08:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Oct 2008 03:08:03 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Oct 2008 10:07:09 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 641B6234C1F8 for ; Wed, 1 Oct 2008 03:07:44 -0700 (PDT) Message-ID: <1097451683.1222855664395.JavaMail.jira@brutus> Date: Wed, 1 Oct 2008 03:07:44 -0700 (PDT) From: "Jean-Louis Boudart (JIRA)" To: notifications@ant.apache.org Subject: [jira] Updated: (IVY-925) ivy:settings / ivy:configure task are skipped if ivy.instance property doesn't exists In-Reply-To: <1285174372.1222779044213.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVY-925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Louis Boudart updated IVY-925: ----------------------------------- Attachment: test-ivyInstance.tar.gz Oh ! my bad i've made some other test and it using ivy:configure with ivy-2.0-rc1 seems to work ! But when i use ivy:settings with ivy-2.0-rc1 or ivy-2.0-beta-2 i still have the problem. I've joined a little project where you could reproduce the problem. > ivy:settings / ivy:configure task are skipped if ivy.instance property doesn't exists > ------------------------------------------------------------------------------------- > > Key: IVY-925 > URL: https://issues.apache.org/jira/browse/IVY-925 > Project: Ivy > Issue Type: Bug > Components: Core > Reporter: Jean-Louis Boudart > Priority: Minor > Attachments: test-ivyInstance.tar.gz > > > It seems that using ivy;settings or ivy:configure task when you havn't initialized ivy.instance property doesn't work > Here is my ivy:configure > {noformat} > > {noformat} > I'm using my own ivysettings.properties instead of the one given by ivy. My ivysettings.properties doesn't contains ivy.instance property. > Here is part of my ivysettings.xml > {noformat} > > > ... > > {noformat} > And running this in debug mode i can see "Skipped because property 'ivy.instance' not set." > Consequences are, when i'm trying to use any ivy task that use this instance, i have a build failed with a message like "Reference ivy.instance.project not found." > Exemple try to use ivy:resolve > {noformat} > > {noformat} > The result is : > {noformat} > BUILD FAILED > /home/neoverflow/work/sg/sogera-git/common/common.xml:124: Reference ivy.instance.project not found. > at org.apache.tools.ant.types.Reference.getReferencedObject(Reference.java:115) > at org.apache.ivy.ant.IvyTask.getIvyInstance(IvyTask.java:76) > at org.apache.ivy.ant.IvyTask.prepareTask(IvyTask.java:256) > at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:276) > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) > at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) > at org.apache.tools.ant.Task.perform(Task.java:348) > at org.apache.tools.ant.Target.execute(Target.java:357) > at org.apache.tools.ant.Target.performTasks(Target.java:385) > at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) > at org.apache.tools.ant.Project.executeTarget(Project.java:1298) > at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) > at org.apache.tools.ant.Project.executeTargets(Project.java:1181) > at org.apache.tools.ant.Main.runBuild(Main.java:698) > at org.apache.tools.ant.Main.startAnt(Main.java:199) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) > {noformat} > Adding this property to my own ivysettings.properties, everything seems ok. > I think that when you give an settingsId (in ivy:configure) or an id in (ivy:instance) you doesn't need to use ivy.instance property. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.