tomcatRun task is almost identical to appRun task. There’s only one difference: tomcatRun forces Gretty to ignore the value of gretty.servletContainer and run on Tomcat.