Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 24926 invoked from network); 10 Sep 2009 20:11:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Sep 2009 20:11:20 -0000 Received: (qmail 69216 invoked by uid 500); 10 Sep 2009 20:11:20 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 69143 invoked by uid 500); 10 Sep 2009 20:11:20 -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 69134 invoked by uid 99); 10 Sep 2009 20:11:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Sep 2009 20:11:20 +0000 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; Thu, 10 Sep 2009 20:11:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 73DFA234C004 for ; Thu, 10 Sep 2009 13:10:57 -0700 (PDT) Message-ID: <1808054480.1252613457457.JavaMail.jira@brutus> Date: Thu, 10 Sep 2009 13:10:57 -0700 (PDT) From: "Michael Scheetz (JIRA)" To: notifications@ant.apache.org Subject: [jira] Updated: (IVY-1122) Ivy pattern with optional extra attribute is not resolved correctly In-Reply-To: <1046463597.1252612977458.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVY-1122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Scheetz updated IVY-1122: --------------------------------- Description: Calling String partiallyResolvedPattern = IvyPatternHelper.substituteTokens(pattern, tokenValues); where pattern = "/test/repositories/IVY-1115/[organisation]/[module](/[att])/ivy-[revision].xml" tokenValues = {revision=1, module=a, organisation=test, branch=trunk, type=ivy, ext=xml} returns /Project/hudsontools/admin/ivystatus/test/repositories/IVY-1115/test/a/ivy-1.xml instead of /Project/hudsontools/admin/ivystatus/test/repositories/IVY-1115/test/a(/[att])/ivy-1.xml Extra attributes are resolved after this partial pattern is resolved so the current behavior will never correctly resolve an optional extra attribute. See AbstractPatternsBase.resolveTokenValues(...). was: Calling String partiallyResolvedPattern = IvyPatternHelper.substituteTokens(pattern, tokenValues); where pattern = "/test/repositories/IVY-1115/[organisation]/[module](/[att])/ivy-[revision].xml" tokenValues = {revision=1, module=a, organisation=test, branch=trunk, type=ivy, ext=xml} returns /Project/hudsontools/admin/ivystatus/test/repositories/IVY-1115/test/a/ivy-1.xml instead of /Project/hudsontools/admin/ivystatus/test/repositories/IVY-1115/test/a(/[att])/ivy-1.xml Extra attributes seem to be resolved after this partial pattern is resolved so the current behavior will never correctly resolve an optional extra attribute. > Ivy pattern with optional extra attribute is not resolved correctly > ------------------------------------------------------------------- > > Key: IVY-1122 > URL: https://issues.apache.org/jira/browse/IVY-1122 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.1.0-RC2 > Environment: Ivy 2.1.0-RC2 > Apache Ant version 1.7.0 compiled on December 13 2006 > Reporter: Michael Scheetz > Priority: Minor > > Calling > String partiallyResolvedPattern = IvyPatternHelper.substituteTokens(pattern, tokenValues); > where > pattern = "/test/repositories/IVY-1115/[organisation]/[module](/[att])/ivy-[revision].xml" > tokenValues = {revision=1, module=a, organisation=test, branch=trunk, type=ivy, ext=xml} > returns > /Project/hudsontools/admin/ivystatus/test/repositories/IVY-1115/test/a/ivy-1.xml > instead of > /Project/hudsontools/admin/ivystatus/test/repositories/IVY-1115/test/a(/[att])/ivy-1.xml > Extra attributes are resolved after this partial pattern is resolved so the current behavior will never correctly resolve an optional extra attribute. See AbstractPatternsBase.resolveTokenValues(...). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.