Properties buildProperties = new Properties();       try { buildProperties.load( new FileInputStream( new File( System.getProperty( "user.home" ), "build.properties" ) ) );  mavenRepoLocal = buildProperties.getProperty( "maven.repo.local" ); } catch ( Exception e ) {  }
mavenRepoLocal = System.getProperty( "maven.repo.local" );
    public void setUp() throws Exception    {        super.setUp();        String basedir = getBasedir();        basedir = System.getProperty( "basedir" );        compiler = (Compiler) lookup( Compiler.ROLE, getRoleHint() );        Properties buildProperties = new Properties();        // ----------------------------------------------------------------------        // We'll need a default pattern for searching for maven.repo.local but        // this will do for now. jvz.        // ----------------------------------------------------------------------        try        {            buildProperties.load( new FileInputStream( new File( System.getProperty( "user.home" ), "build.properties" ) ) );            mavenRepoLocal = buildProperties.getProperty( "maven.repo.local" );        }        catch ( Exception e )        {            // do nothing        }        if ( mavenRepoLocal == null )        {            mavenRepoLocal = System.getProperty( "maven.repo.local" );        }        if ( mavenRepoLocal == null )        {            mavenRepoLocal = new File( System.getProperty( "user.home" ), ".maven/repository" ).getPath();        }        compilerConfig = new CompilerConfiguration();        compilerConfig.setClasspathEntries( getClasspath() );        compilerConfig.addSourceLocation( basedir + "/src/test-input/src/main" );        compilerConfig.setOutputLocation( basedir + "/target/" + getRoleHint() + "/classes" );        compilerConfig.addInclude( "**/*.java" );    }