mirror of https://github.com/apache/maven.git
o If we are not actually in an SVN repository then don't run tests that require SVN.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@580653 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
85085b529c
commit
b3461d5936
|
@ -34,14 +34,19 @@ public class EmbedderUsingScmPluginTest
|
||||||
public void testRunningScmPlugin()
|
public void testRunningScmPlugin()
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
Properties p = new Properties();
|
File svnDirectory = new File( getBasedir(), ".svn" );
|
||||||
|
|
||||||
File outputDirectory = new File( getBasedir(), "target/scm.diff" );
|
if ( svnDirectory.exists() )
|
||||||
|
{
|
||||||
|
Properties p = new Properties();
|
||||||
|
|
||||||
p.setProperty( "outputDirectory", outputDirectory.getCanonicalPath() );
|
File outputDirectory = new File( getBasedir(), "target/scm.diff" );
|
||||||
|
|
||||||
p.setProperty( "connectionUrl", "scm:svn:http://svn.apache.org/repos/asf/maven/components/trunk/maven-embedder" );
|
p.setProperty( "outputDirectory", outputDirectory.getCanonicalPath() );
|
||||||
|
|
||||||
File basedir = runWithProject( "scm:diff", p );
|
p.setProperty( "connectionUrl", "scm:svn:http://svn.apache.org/repos/asf/maven/components/trunk/maven-embedder" );
|
||||||
|
|
||||||
|
File basedir = runWithProject( "scm:diff", p );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue