2 import java.util.zip.*;
4 File file = new File( basedir, "target/test-1.0.jar" );
6 throw new FileNotFoundException( "Could not find generated JAR: " + file );
9 ZipFile zipFile = new ZipFile(file);
11 if (zipFile.getEntry("META-INF/MANIFEST.MF")==null) {
12 throw new FileNotFoundException("Could not find manifest");
14 if (zipFile.getEntry("META-INF/maven/org.codehaus.sonar/test/pom.xml")!=null) {
15 throw new FileNotFoundException("The maven descriptor (pom.xml) has not been removed");
17 if (zipFile.getEntry("META-INF/maven/org.codehaus.sonar/test/pom.properties")!=null) {
18 throw new FileNotFoundException("The maven descriptor (pom.properties) has not been removed");