public class GroovyRatpackMain extends Object
RatpackServer.start(ratpack.func.Action) and Groovy.Script.app().
This can be be used as the main class, when defining your Ratpack app as a Groovy script.
The application arguments will be available as this.args (as a String[]) in the script.
Groovy.Script.appWithArgs(String...)| Constructor and Description |
|---|
GroovyRatpackMain() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String... args)
Starts the server defined by calling
Groovy.Script.appWithArgs(String...). |
public static void main(String... args) throws Exception
Groovy.Script.appWithArgs(String...).args - not usedException - any when starting the server