Class GroovyRatpackMain


  • public class GroovyRatpackMain
    extends java.lang.Object
    A boilerplate entry point, which combines 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.

    See Also:
    Groovy.Script.appWithArgs(String...)
    • Constructor Detail

      • GroovyRatpackMain

        public GroovyRatpackMain()
    • Method Detail

      • main

        public static void main​(java.lang.String... args)
                         throws java.lang.Exception
        Starts the server defined by calling Groovy.Script.appWithArgs(String...).
        Parameters:
        args - not used
        Throws:
        java.lang.Exception - any when starting the server