Created
October 30, 2013 03:35
-
-
Save danveloper/7226854 to your computer and use it in GitHub Desktop.
Embedded Glassfish Runner that doesn't suck.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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