You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Andreas Dejung (JIRA)" <ji...@apache.org> on 2008/10/13 00:22:44 UTC
[jira] Created: (IVY-940) unable to resolve snapshot versions
depending on xml elements order
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
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.
[jira] Resolved: (IVY-940) unable to resolve snapshot versions
depending on xml elements order
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maarten Coene resolved IVY-940.
-------------------------------
Resolution: Fixed
Fix Version/s: trunk
Assignee: Maarten Coene
I've committed a fix into SVN trunk.
Could you give it a try?
> 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.
[jira] Updated: (IVY-940) unable to resolve snapshot versions
depending on xml elements order
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maarten Coene updated IVY-940:
------------------------------
Fix Version/s: (was: trunk)
2.0-RC2
> 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: 2.0-RC2
>
>
> 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.
[jira] Commented: (IVY-940) unable to resolve snapshot versions
depending on xml elements order
Posted by "Andreas Dejung (JIRA)" <ji...@apache.org>.
[ 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.