PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.27.5
Code Block Pro – Beautiful Syntax Highlighting v1.27.5
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
code-block-pro / build / shiki / samples / groovy.sample

groovy.sample in Code Block Pro – Beautiful Syntax Highlighting 1.27.5, at build/shiki/samples/groovy.sample

19 lines 576 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import org.mortbay.jetty.Server
2 import org.mortbay.jetty.servlet.*
3 import groovy.servlet.*
4
5 @Grab(group='org.mortbay.jetty', module='jetty-embedded', version='6.1.14')
6 def startJetty() {
7 def jetty = new Server(9090)
8 def context = new Context(jetty, '/', Context.SESSIONS)
9 context.setWelcomeFiles(["webserverIndex.groovy"] as String[])
10 context.resourceBase = '.'
11 context.addServlet(GroovyServlet, '*.groovy')
12 jetty.start()
13 }
14
15 println "Starting Jetty on port 9090, press Ctrl+C to stop."
16 startJetty()
17
18 // From https://gist.github.com/saltnlight5/3756240
19