import java.io.*; | |
import org.codehaus.plexus.util.*; | |
String actual = FileUtils.fileRead( new File( basedir, "target/tree.txt" ) ); | |
String expected = FileUtils.fileRead( new File( basedir, "expected.txt" ) ); | |
actual = actual.replaceAll( "[\n\r]+", "\n" ); | |
expected = expected.replaceAll( "[\n\r]+", "\n" ); | |
System.out.println( "Checking dependency tree..." ); | |
if ( !actual.equals( expected ) ) | |
{ | |
throw new Exception( "Unexpected dependency tree" ); | |
} | |
return true; |