ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Scheetz (JIRA)" <j...@apache.org>
Subject [jira] Created: (IVY-1122) Ivy pattern with optional extra attribute is not resolved correctly
Date Thu, 10 Sep 2009 20:02:57 GMT
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 = "<sandbox>/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.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message