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