Start ratpack.groovy from Java -


i´m trying use ratpack groovy framework java, cannot find way init java.

any idea how start ratpack.groovy script java?

this ratpack script

 ratpack { def tokens=[:] serverconfig {     port 9000 } handlers {     get("identity/:token") {         def token= pathtokens["token"]         render tokens[token]     } } } 

regards.

based on groovyratpackmain, can start groovy app java this:

import ratpack.server.ratpackserver;  ratpackserver.start(groovy.script.appwithargs(args)); 

if need use non-default script file or perform other customization, groovy.script has methods support that.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -