
org.jruby.mains.JettyStop Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jruby-mains Show documentation
Show all versions of jruby-mains Show documentation
a set of main method to launch a jruby application from within a jar or war file or start jetty as executable
The newest version!
package org.jruby.mains;
import org.eclipse.jetty.server.Server;
public class JettyStop extends Thread {
private final Server server;
JettyStop(Server server) {
this.server = server;
}
public void run() {
try {
server.stop();
server.join();
}
catch (Exception e) {
e.printStackTrace();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy