Post date: Nov 05, 2012 12:56:39 PM
Use ANT's MACRODEF task to encapsulating private functionality in a build script.
A TARGET should only be declared for top level functionality and can therefore be invoked from the command line. A Target should, if possible, only include calls to MACRODEF tasks.
NOTE: Using macrodef in this way also makes unit testing ant scripts with AntUnit easier; more on that later.