blob: f2561a12eb64ef023b12f1ec840efeca9c897c43 [file] [log] [blame]
import java.io.*;
File projectProperties = new File( basedir, "target/project.properties" );
Properties props = new Properties();
props.load( new FileInputStream( projectProperties ) );
String junitJarPath = props.getProperty( "junit:junit:jar" );
if ( junitJarPath == null )
{
throw new Exception( "junit:junit:jar is null" );
}
if ( ! (new File( junitJarPath )).isFile() )
{
throw new Exception( "junit jar is not a file: " + junitJarPath );
}
String mavenArtifactPath = props.getProperty( "org.apache.maven:maven-artifact:jar" );
if ( mavenArtifactPath == null )
{
throw new Exception( "org.apache.maven:maven-artifact:jar is null" );
}
if ( ! (new File( mavenArtifactPath )).isFile() )
{
throw new Exception( "maven-artifact jar is not a file: " + mavenArtifactPath );
}
return true;