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

org.jruby.mains.JettyStop Maven / Gradle / Ivy

Go to download

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