ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Dejung (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-940) unable to resolve snapshot versions depending on xml elements order
Date Mon, 20 Oct 2008 04:58:46 GMT

    [ https://issues.apache.org/jira/browse/IVY-940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12640915#action_12640915
] 

Andreas Dejung commented on IVY-940:
------------------------------------

Yep that is working for me now :) Sorry for not getting back to you earlier. Was bit busy
....

Thanks for that and have fun
Andreas

> unable to resolve snapshot versions depending on xml elements order
> -------------------------------------------------------------------
>
>                 Key: IVY-940
>                 URL: https://issues.apache.org/jira/browse/IVY-940
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.0-RC1
>            Reporter: Andreas Dejung
>            Assignee: Maarten Coene
>             Fix For: trunk
>
>
> Depending on the order of the timestamp and buildnumber elements the fix done in IVY-501
does not work.
> Here a possible fix
> In IBiblioResolver.java line 171
> {noformat} 
>                     XMLHelper.parse(metadataStream, null, new ContextualSAXHandler()
{
>                         String buildNumber="";
>                         boolean timestampFound;	
>                         boolean buildNumberFound;	
>                         public void endElement(String uri, String localName, String qName)

>                                 throws SAXException {
>                             if ("metadata/versioning/snapshot/timestamp".equals(getContext()))
{
>                                 snapshotRev.append(getText()).append("-");
>                                 timestampFound=true;
>                                 if(buildNumberFound){
>                             		snapshotRev.append(buildNumber);
>                                 }
>                             }
>                             if ("metadata/versioning/snapshot/buildNumber"
>                                     .equals(getContext())) {
>                             	buildNumberFound=true;
>                             	if(timestampFound){
>                             		snapshotRev.append(getText());
>                             	}else{
>                             		buildNumber=getText();
>                             	}
>                             }
>                             super.endElement(uri, localName, qName);
>                         }
>                     }, null);
> {noformat} 

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