Search in sources :

Example 6 with ZipEntry

use of org.codehaus.plexus.archiver.zip.ZipEntry in project aries by apache.

the class EsaMojoTest method getSubsystemManifest.

private Manifest getSubsystemManifest(ZipFile esa) throws Exception {
    ZipEntry entry = esa.getEntry("OSGI-INF/SUBSYSTEM.MF");
    InputStream in = esa.getInputStream(entry);
    Manifest mf = new Manifest(in);
    return mf;
}
Also used : InputStream(java.io.InputStream) ZipEntry(org.codehaus.plexus.archiver.zip.ZipEntry) Manifest(java.util.jar.Manifest)

Aggregations

ZipEntry (org.codehaus.plexus.archiver.zip.ZipEntry)6 BufferedReader (java.io.BufferedReader)2 InputStreamReader (java.io.InputStreamReader)2 Enumeration (java.util.Enumeration)2 ZipFile (org.codehaus.plexus.archiver.zip.ZipFile)2 File (java.io.File)1 InputStream (java.io.InputStream)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Manifest (java.util.jar.Manifest)1