Replacing JDK 1.5 api call.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@545241 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2007-06-07 16:54:58 +00:00
parent d20f6c96fe
commit bfce771633
1 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ import org.codehaus.plexus.PlexusTestCase;
import java.io.File; import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.net.URI;
import java.net.URISyntaxException; import java.net.URISyntaxException;
import java.net.URL; import java.net.URL;
@ -79,7 +80,7 @@ public abstract class AbstractMavenProjectTestCase
throw new FileNotFoundException( "Unable to find: " + resource ); throw new FileNotFoundException( "Unable to find: " + resource );
} }
return new File( resourceUrl.toURI() ); return new File( new URI( resourceUrl.getPath() ) );
} }
protected ArtifactRepository getLocalRepository() protected ArtifactRepository getLocalRepository()