
org.snapscript.studio.agent.runtime.MainScriptValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap-agent Show documentation
Show all versions of snap-agent Show documentation
Dynamic scripting for the JVM
The newest version!
package org.snapscript.studio.agent.runtime;
import static org.snapscript.studio.agent.runtime.RuntimeAttribute.SCRIPT;
import java.util.jar.Attributes;
import java.util.jar.Manifest;
public class MainScriptValue extends ManifestValue {
public static final String MAIN_SCRIPT = "Main-Script";
@Override
public String getName() {
return SCRIPT.name;
}
@Override
public String getValue() {
Attributes.Name key = new Attributes.Name(MAIN_SCRIPT);
Manifest manifest = getManifest();
return (String)manifest.getMainAttributes().get(key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy