Package ratpack.groovy
Class GroovyRatpackMain
- java.lang.Object
-
- ratpack.groovy.GroovyRatpackMain
-
public class GroovyRatpackMain extends java.lang.ObjectA boilerplate entry point, which combinesRatpackServer.start(ratpack.func.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 voidmain(java.lang.String... args)Starts the server defined by callingGroovy.Script.appWithArgs(String...).
-
-
-
Method Detail
-
main
public static void main(java.lang.String... args) throws java.lang.ExceptionStarts the server defined by callingGroovy.Script.appWithArgs(String...).- Parameters:
args- not used- Throws:
java.lang.Exception- any when starting the server
-
-