mirror of https://github.com/apache/maven.git
MNG-2690 Some maven-project tests fail under maven-surefire-plugin 2.3
Submitted by: Mark Hobson git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@543614 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b4f380dd3c
commit
1a0b546e7f
|
@ -27,6 +27,7 @@ import org.codehaus.plexus.PlexusTestCase;
|
|||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.net.URISyntaxException;
|
||||
import java.net.URL;
|
||||
|
||||
/**
|
||||
|
@ -59,7 +60,7 @@ public abstract class AbstractMavenProjectTestCase
|
|||
// ----------------------------------------------------------------------
|
||||
|
||||
protected File getLocalRepositoryPath()
|
||||
throws FileNotFoundException
|
||||
throws FileNotFoundException, URISyntaxException
|
||||
{
|
||||
File markerFile = getFileForClasspathResource( "local-repo/marker.txt" );
|
||||
|
||||
|
@ -67,7 +68,7 @@ public abstract class AbstractMavenProjectTestCase
|
|||
}
|
||||
|
||||
protected File getFileForClasspathResource( String resource )
|
||||
throws FileNotFoundException
|
||||
throws FileNotFoundException, URISyntaxException
|
||||
{
|
||||
ClassLoader cloader = Thread.currentThread().getContextClassLoader();
|
||||
|
||||
|
@ -78,7 +79,7 @@ public abstract class AbstractMavenProjectTestCase
|
|||
throw new FileNotFoundException( "Unable to find: " + resource );
|
||||
}
|
||||
|
||||
return new File( resourceUrl.getPath() );
|
||||
return new File( resourceUrl.toURI() );
|
||||
}
|
||||
|
||||
protected ArtifactRepository getLocalRepository()
|
||||
|
|
Loading…
Reference in New Issue