You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Michael Scheetz (JIRA)" <ji...@apache.org> on 2009/09/10 22:10:57 UTC

[jira] Updated: (IVY-1122) Ivy pattern with optional extra attribute is not resolved correctly

     [ 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 = "<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 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 = "<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.



> 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 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.