public class GroovyRatpackMain
extends java.lang.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(java.lang.String... args)
Starts the server defined by calling
Groovy.Script.appWithArgs(String...) . |
public static void main(java.lang.String... args) throws java.lang.Exception
Groovy.Script.appWithArgs(String...)
.args
- not usedjava.lang.Exception
- any when starting the server