import java.io.*;
import org.codehaus.plexus.util.FileUtils;


String log = FileUtils.fileRead( new File( basedir, "build.log" ) );
if ( !log.contains( "do something meaningful" ) )
{
    throw new RuntimeException( "log file does not contain 'do something meaningful'" );
}