An ant task that generates swagger JSON spec files and html documentation from Java code. This ant task is a wrapper for swagger-maven-plugin and uses the same XML syntax, therefore you can just cut and paste your XML from the maven pom to the ant build.xml.
See a sample build xml.