org.snapscript.studio.agent.ProcessTerminator 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;
public class ProcessTerminator {
public static void terminate(String message) {
try {
System.err.println("TERMINATE: " +message);
Thread.sleep(1000);
System.exit(0);
}catch(Exception e){
e.printStackTrace();
}
}
}