
org.snapscript.studio.agent.local.LocalManifestReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap-all Show documentation
Show all versions of snap-all Show documentation
Dynamic scripting for the JVM
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