Author: hibou
Date: Tue Aug 21 19:40:50 2012
New Revision: 1375737

URL: http://svn.apache.org/viewvc?rev=1375737&view=rev
Log:
Properly build the url pattern

Modified:
    
ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/resolver/URLResolverTest.java

Modified: 
ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/resolver/URLResolverTest.java
URL: 
http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/resolver/URLResolverTest.java?rev=1375737&r1=1375736&r2=1375737&view=diff
==============================================================================
--- 
ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/resolver/URLResolverTest.java
 (original)
+++ 
ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/resolver/URLResolverTest.java
 Tue Aug 21 19:40:50 2012
@@ -141,10 +141,9 @@ public class URLResolverTest extends Abs
     public void testLatestFileWithOpaqueURL() throws Exception {
         URLResolver resolver = new URLResolver();
         resolver.setSettings(settings);
-//        String rootpath = new 
File("test/repositories/1").toURI().toURL().toExternalForm();
-        String rootpath = new File("test/repositories/1").getAbsolutePath();
-        resolver.addIvyPattern("file:" + rootpath + 
"/[organisation]/[module]/ivys/ivy-[revision].xml");
-        resolver.addArtifactPattern("file:" + rootpath + 
"/[organisation]/[module]/[type]s/[artifact]-[revision].[type]");
+        String rootpath = new 
File("test/repositories/1").getAbsoluteFile().toURI().toURL().toExternalForm();
+        resolver.addIvyPattern(rootpath + 
"/[organisation]/[module]/ivys/ivy-[revision].xml");
+        resolver.addArtifactPattern(rootpath + 
"/[organisation]/[module]/[type]s/[artifact]-[revision].[type]");
         resolver.setName("test");
         assertEquals("test", resolver.getName());
 


Reply via email to