From bfce77163302856e2b41e5de5852669483ee88a7 Mon Sep 17 00:00:00 2001 From: John Dennis Casey Date: Thu, 7 Jun 2007 16:54:58 +0000 Subject: [PATCH] Replacing JDK 1.5 api call. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@545241 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/project/AbstractMavenProjectTestCase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maven-project/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java b/maven-project/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java index f18f569dd3..7eba704ca2 100644 --- a/maven-project/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java +++ b/maven-project/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java @@ -27,6 +27,7 @@ import org.codehaus.plexus.PlexusTestCase; import java.io.File; import java.io.FileNotFoundException; +import java.net.URI; import java.net.URISyntaxException; import java.net.URL; @@ -79,7 +80,7 @@ public abstract class AbstractMavenProjectTestCase throw new FileNotFoundException( "Unable to find: " + resource ); } - return new File( resourceUrl.toURI() ); + return new File( new URI( resourceUrl.getPath() ) ); } protected ArtifactRepository getLocalRepository()