Skip to content

Instantly share code, notes, and snippets.

@danveloper
Created October 30, 2013 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danveloper/7226854 to your computer and use it in GitHub Desktop.
Save danveloper/7226854 to your computer and use it in GitHub Desktop.
Embedded Glassfish Runner that doesn't suck.
class Main {
static void main(args) {
def glassfish = new GlassFishProperties().with {
setPort "http-listener", 8080
GlassFishRuntime.bootstrap().newGlassFish(it).with {
start()
it
}
}
glassfish.commandRunner.run "deploy", args?.getAt(0)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment