1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
import java.io.*;
import org.codehaus.plexus.util.FileUtils;
String log = FileUtils.fileRead( new File( basedir, "build.log" ) );
String expected = "jar dependencies for foo-0.0.1-java.gemspec";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = "lib/foo_jars.rb";
if ( ! new File( basedir, expected ).exists() )
{
throw new RuntimeException( "log file does not exists '" + expected + "'" );
}
// expected = "lib/io";
// if ( ! new File( basedir, expected ).exists() )
// {
// throw new RuntimeException( "log file does exists '" + expected + "'" );
// }
// expected = "lib/org";
// if ( ! new File( basedir, expected ).exists() )
// {
// throw new RuntimeException( "log file does exists '" + expected + "'" );
// }
|