Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 421BDDBCB for ; Sun, 19 Aug 2012 21:04:39 +0000 (UTC) Received: (qmail 16151 invoked by uid 500); 19 Aug 2012 21:04:39 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 16083 invoked by uid 500); 19 Aug 2012 21:04:39 -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 15967 invoked by uid 99); 19 Aug 2012 21:04:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Aug 2012 21:04:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 37CA02C5BEF for ; Sun, 19 Aug 2012 21:04:38 +0000 (UTC) Date: Mon, 20 Aug 2012 08:04:38 +1100 (NCT) From: "Matt Hurne (JIRA)" To: notifications@ant.apache.org Message-ID: <412828484.28456.1345410278229.JavaMail.jiratomcat@arcas> In-Reply-To: <531337707.11004.1335294812963.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (IVY-1346) Unnecessary warning when parent ivy.xml is located using resolvers rather than a location attribute on the extends element MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IVY-1346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13437578#comment-13437578 ] Matt Hurne commented on IVY-1346: --------------------------------- Thanks, Maarten. I have since moved on from the project and am no longer in a position to test this personally. > Unnecessary warning when parent ivy.xml is located using resolvers rather than a location attribute on the extends element > -------------------------------------------------------------------------------------------------------------------------- > > Key: IVY-1346 > URL: https://issues.apache.org/jira/browse/IVY-1346 > Project: Ivy > Issue Type: Improvement > Components: Core > Affects Versions: 2.2.0, 2.3.0-RC1 > Reporter: Matt Hurne > Assignee: Maarten Coene > Priority: Minor > Labels: patch > Fix For: trunk > > Attachments: IVY-1346.patch, IVY-1346.zip > > > When using an {{}} element without a {{location}} attribute an unnecessary warning is output stating that {{../ivy.xml}} could not be parsed (unless there is in fact a file {{../ivy.xml}} relative to the {{ivy.xml}} that contains the {{}}). > For example: > {noformat} > ... > > > > ... > {noformat} > {noformat} > [ivy:resolve] Unable to parse included ivy file ../ivy.xml: D:\project\component\ivy.xml > (The system cannot find the file specified) in file:/D:/project/component/ivy.xml > {noformat} > {{XmlModuleDescriptorParser.extendsStarted()}} is the source of the warning. If no {{location}} was specified on the {{}} it uses a default location of {{../ivy.xml}}. It then attempts to find and use the {{../ivy.xml}} location, and only falls back to resolving the parent descriptor if {{../ivy.xml}} doesn't exist or if its {{ModuleId}} is not what is expected. > The behavior is sensible and I do not suggest that it be changed. However, it would be nice if the warning that {{../ivy.xml}} could not be parsed were suppressed when that file is being used as a default. The warning would still be appropriate if {{location="../ivy.xml"}} were explicitly included in the {{}} element. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira