Ant is growing up. Here is an example of someone working through refactoring their build to take advantage of the new import and macrodef features in Ant 1.6.1.
The main features I have used are the 'import' task and the 'macrodef' task. The 'import' task imports (duh) a another ant file and includes it in the current file. Macrodef is a way to define a new Ant task in an Ant build itself. Macrodef allows you to define standard tasks that have attributes and elements given to them when they are called.
Sounds like Ant is getting stronger and smarter. Here is a good introduction by Mike Spille that explains why the import feature means we can finally use Ant in large enterprise builds.
|