Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
@GrabResolver(name='codehaus-release-repo', root='http://repository.codehaus.org')@GrabResolver(name='codehaus-release-repo',
root='http://repository.codehaus.org')
@Grab(group='org.mortbay.jetty', module='jetty-embedded', version='6.1.11')

import org.mortbay.jetty.*
import org.mortbay.jetty.servlet.*
import groovy.servlet.*

def server = new Server(1234)
def root = new Context(server,"/",Context.SESSIONS)
root.setResourceBase(".")
root.addServlet(new ServletHolder(new TemplateServlet()), "*.html")
server.start()

...