mirror of https://github.com/apache/maven.git
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:
parent
d20f6c96fe
commit
bfce771633
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue