Package ratpack.groovy
Class GroovyRatpackMain
- java.lang.Object
-
- ratpack.groovy.GroovyRatpackMain
-
public class GroovyRatpackMain extends Object
A boilerplate entry point, which combinesRatpackServer.start(Action)
andGroovy.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 aString[]
) in the script.- See Also:
Groovy.Script.appWithArgs(String...)
-
-
Constructor Summary
Constructors Constructor Description GroovyRatpackMain()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String... args)
Starts the server defined by callingGroovy.Script.appWithArgs(String...)
.
-
-
-
Method Detail
-
main
public static void main(String... args) throws Exception
Starts the server defined by callingGroovy.Script.appWithArgs(String...)
.- Parameters:
args
- not used- Throws:
Exception
- any when starting the server
-
-