Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 86866 invoked from network); 25 Apr 2008 14:25:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Apr 2008 14:25:29 -0000 Received: (qmail 41322 invoked by uid 500); 25 Apr 2008 14:25:30 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 41309 invoked by uid 500); 25 Apr 2008 14:25:30 -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 41288 invoked by uid 99); 25 Apr 2008 14:25:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Apr 2008 07:25:30 -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; Fri, 25 Apr 2008 14:24:45 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 69AF1234C106 for ; Fri, 25 Apr 2008 07:21:56 -0700 (PDT) Message-ID: <1685250425.1209133316417.JavaMail.jira@brutus> Date: Fri, 25 Apr 2008 07:21:56 -0700 (PDT) From: "Matt Inger (JIRA)" To: notifications@ant.apache.org Subject: [jira] Created: (IVY-809) Using ivy:settings with the "id" attribute not behaving as expected. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Using ivy:settings with the "id" attribute not behaving as expected. -------------------------------------------------------------------- Key: IVY-809 URL: https://issues.apache.org/jira/browse/IVY-809 Project: Ivy Issue Type: Bug Components: Ant Affects Versions: 2.0.0-beta-2 Environment: Fedora 9 ANT 1.6.5 / Ant 1.7.0 Reporter: Matt Inger Attachments: build.xml Using the attached build file, I have encountered 2 issues: 1. When using ivy:settings with the "id" attribute, i get an immediate failure if I do not use the "override" flag: Buildfile: build.xml foo: BUILD FAILED /home/minger/build.xml:5: overriding a previous definition of ivy:settings with the id 'settings1' is not allowed when using override='notallowed'. Total time: 0 seconds 2. If i enable the override flag (as done in the "bar" target), it seems to be constructing the deafult ivy instance when i execute a resolve or post-resolve task with a "settingsRef" defined. It seems to still pick up on the reference it's given. However, it should not need to create the default "ivy.settings" instance if you give it a reference. In fact, it's very confusing and misleading to the user. Not to mention the "[null]" task name it's outputting in that case. it also seems that the default ivy instance is using deprecated elements and/or properties. Buildfile: build.xml bar: :: Ivy 2.0.0-beta2 - 20080225093827 :: http://ant.apache.org/ivy/ :: [ivy:settings] :: loading settings :: file = /home/minger/ivysettings.xml No ivy:settings found for the default reference 'ivy.instance'. A default instance will be used [null] DEPRECATED: 'ivy.conf.file' is deprecated, use 'ivy.settings.file' instead [null] :: loading settings :: file = /home/minger/ivysettings.xml [ivy:cachepath] :: resolving dependencies :: apache#commons-lang-caller;working [ivy:cachepath] confs: [default] [ivy:cachepath] found apache#commons-lang;2.3 in master-http [ivy:cachepath] :: resolution report :: resolve 118ms :: artifacts dl 5ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | default | 1 | 0 | 0 | 0 || 1 | 0 | --------------------------------------------------------------------- BUILD SUCCESSFUL Total time: 1 second -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.