maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khmarba...@apache.org
Subject [maven-remote-resources-plugin] 04/07: Fixed code.
Date Thu, 21 Jun 2018 19:09:11 GMT
This is an automated email from the ASF dual-hosted git repository.

khmarbaise pushed a commit to branch MRRESOURCES-104
in repository https://gitbox.apache.org/repos/asf/maven-remote-resources-plugin.git

commit 0a0ff07320887d292a532ed7ee0b03a664f37734
Author: Karl Heinz Marbaise <khmarbaise@apache.org>
AuthorDate: Sun Apr 8 00:22:07 2018 +0200

    Fixed code.
---
 .../org/apache/maven/plugin/resources/remote/it/support/TestUtils.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/maven/plugin/resources/remote/it/support/TestUtils.java
b/src/test/java/org/apache/maven/plugin/resources/remote/it/support/TestUtils.java
index f43d804..366aa16 100644
--- a/src/test/java/org/apache/maven/plugin/resources/remote/it/support/TestUtils.java
+++ b/src/test/java/org/apache/maven/plugin/resources/remote/it/support/TestUtils.java
@@ -21,7 +21,6 @@ package org.apache.maven.plugin.resources.remote.it.support;
 
 import java.io.File;
 import java.io.IOException;
-import java.net.URI;
 import java.net.URISyntaxException;
 import java.net.URL;
 
@@ -41,7 +40,7 @@ public class TestUtils
             throw new IOException( "Cannot find test directory: " + name );
         }
 
-        return new File( new URI( resource.toExternalForm() ).normalize().getPath() );
+        return new File( resource.toURI().normalize().getPath() );
     }
 
     public static File getBaseDir()


Mime
View raw message