in netbeans.apache.org/buildSrc/src/main/groovy/TomcatMain.groovy [21:25]
public void validate() { if(!directory && !directory.exists()) { throw new IllegalStateException("The directory must be set.") } }