ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r601890 - /ant/ivy/core/trunk/test/java/org/apache/ivy/TestHelper.java
Date Thu, 06 Dec 2007 22:45:30 GMT
Author: maartenc
Date: Thu Dec  6 14:45:30 2007
New Revision: 601890

URL: http://svn.apache.org/viewvc?rev=601890&view=rev
Log:
TestHelper didn't work on JDK 1.4

Modified:
    ant/ivy/core/trunk/test/java/org/apache/ivy/TestHelper.java

Modified: ant/ivy/core/trunk/test/java/org/apache/ivy/TestHelper.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/TestHelper.java?rev=601890&r1=601889&r2=601890&view=diff
==============================================================================
--- ant/ivy/core/trunk/test/java/org/apache/ivy/TestHelper.java (original)
+++ ant/ivy/core/trunk/test/java/org/apache/ivy/TestHelper.java Thu Dec  6 14:45:30 2007
@@ -138,7 +138,7 @@
         }
         
         Pattern oneDependencyPattern = Pattern.compile(
-            "(" + mridPattern + ")\\s*->\\s*(" + mridPattern + ")");
+            "(" + mridPattern.pattern() + ")\\s*->\\s*(" + mridPattern.pattern() + ")");
         m = oneDependencyPattern.matcher(microIvy);
         if (m.matches()) {
             DefaultModuleDescriptor md = DefaultModuleDescriptor
@@ -147,8 +147,8 @@
             return md;
         }
         
-        String p = "(" + mridPattern + ")\\s*->\\s*\\{\\s*((?:" 
-                    + mridPattern + ",?\\s+)*" + mridPattern + ")?\\s*\\}";
+        String p = "(" + mridPattern.pattern() + ")\\s*->\\s*\\{\\s*((?:" 
+                    + mridPattern.pattern() + ",?\\s+)*" + mridPattern.pattern() + ")?\\s*\\}";
         Pattern multipleDependenciesPattern = Pattern.compile(
             p);
         m = multipleDependenciesPattern.matcher(microIvy);



Mime
View raw message