This commit is contained in:
NoryiE
2025-02-10 06:00:28 +00:00
parent b0a4a6da9c
commit 71a1fce096
2428 changed files with 0 additions and 1005324 deletions

View File

@@ -1,18 +0,0 @@
import org.mortbay.jetty.Server
import org.mortbay.jetty.servlet.*
import groovy.servlet.*
@Grab(group='org.mortbay.jetty', module='jetty-embedded', version='6.1.14')
def startJetty() {
def jetty = new Server(9090)
def context = new Context(jetty, '/', Context.SESSIONS)
context.setWelcomeFiles(["webserverIndex.groovy"] as String[])
context.resourceBase = '.'
context.addServlet(GroovyServlet, '*.groovy')
jetty.start()
}
println "Starting Jetty on port 9090, press Ctrl+C to stop."
startJetty()
// From https://gist.github.com/saltnlight5/3756240