import java.io.*; boolean result = true; result = result && new File( basedir, "target/parent-1.0-bin/lib/child1.jar" ).exists(); result = result && new File( basedir, "target/parent-1.0-bin/lib/child3.jar" ).exists(); result = result && !new File( basedir, "target/parent-1.0-bin/lib/child2.jar" ).exists(); return result;