All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.snapscript.studio.agent.local.LocalManifestReader Maven / Gradle / Ivy

There is a newer version: 1.4.6
Show newest version
package org.snapscript.studio.agent.local;

import java.io.InputStream;
import java.util.jar.Manifest;

public class LocalManifestReader {

   public static Manifest readManifest() {
      try {
         InputStream resource = LocalManifestReader.class.getResourceAsStream("META-INF/MANIFEST.MF");
         
         if(resource == null) {
            resource = LocalManifestReader.class.getResourceAsStream("/META-INF/MANIFEST.MF");
         }
         return new Manifest(resource);
      } catch(Exception e) {
         throw new IllegalStateException("Could not read manifest file", e);
      }
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy