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