ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r926374 - /ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/id/ModuleRevisionId.java
Date Mon, 22 Mar 2010 22:14:04 GMT
Author: maartenc
Date: Mon Mar 22 22:14:04 2010
New Revision: 926374

URL: http://svn.apache.org/viewvc?rev=926374&view=rev
Log:
fixed problem finding dynamic revisions (introduced by fixing IVY-1177)

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/id/ModuleRevisionId.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/id/ModuleRevisionId.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/id/ModuleRevisionId.java?rev=926374&r1=926373&r2=926374&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/id/ModuleRevisionId.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/id/ModuleRevisionId.java Mon Mar
22 22:14:04 2010
@@ -344,6 +344,11 @@ public class ModuleRevisionId extends Un
      */
     private static String normalizeRevision(String revision) {
         if (revision.startsWith("[") && revision.endsWith("]") && revision.indexOf(',')
== -1 ) {
+            if (IvyPatternHelper.getTokenString(IvyPatternHelper.REVISION_KEY).equals(revision))
{
+                // this is the case when listing dynamic revions
+                return revision;
+            }
+            
             return revision.substring(1, revision.length() - 1);
         } else {
             return revision;



Mime
View raw message