import java.io.*; File file = new File( basedir, "target/test-1.0-filtered-assembly/pom.xml" ); if ( !file.isFile() ) { throw new IllegalStateException( "Missing: " + file ); } return true;