pkglint -Wall -r --only "substitution command" -F With manual review and indentation fixes since pkglint doesn't get that part correct in every case.
This is the 1.9 branch of apache-ant, which is required for JDK 7.x and older. JDK 8.x and newer use the main apache-ant 1.10 package.