# code-block-pro/1.27.3/build/shiki/samples/groovy.sample

Code Block Pro – Beautiful Syntax Highlighting, version 1.27.3. 19 lines.

- Page: https://pluginprobe.com/plugins/code-block-pro/1.27.3/code/build/shiki/samples/groovy.sample
- Raw: https://pluginprobe.com/plugins/code-block-pro/1.27.3/raw/build/shiki/samples/groovy.sample
- Modified: 2023-09-03T01:04:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-block-pro/1.27.3/code/build/shiki/samples/groovy.sample#L10-L20`.

```
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

```
