posted 10 years ago
Ant (and Maven) can do just about anything.
In particular, check Ant's extended task listings. There are lots of processes that will do things like deploy a newly-built webapp to a server. And, if you cannot find a task that does exactly what you want, it's easy to write your own and incorporate them. The Ant Task class is based on the well-known JavaBean architecture.
Maven has the advantage that it can automatically pull and cache external libraries needed to build the project. Plus it encourages a standardized directory structure. So it's good for "world" build, since if you do a "mvn clean" to get rid of any built files, zip it up and email it to someone on the other side of the planet, that person can completely build the project by unzipping it and running the appropriate maven goal without having to do any specialized adjustments to their system or fetch any additional products other than the JDK and Maven itself.
Maven is ideal for common projects such as building webapps and JAR files. Ant works best when the build process is more unique.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer