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:
Jason van Zyl 2007-09-29 22:11:05 +00:00
parent 85085b529c
commit b3461d5936
1 changed files with 10 additions and 5 deletions

View File

@ -34,14 +34,19 @@ public class EmbedderUsingScmPluginTest
public void testRunningScmPlugin()
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 );
}
}
}