concept macros in category ant
appears as: macros, macros

This is an excerpt from Manning's book Ant in Action.
If you have an IDE that has macros or templates, write a template for a testcase. For example, with IntelliJ IDEA you can map something like “test” to:
Remember that the macro is still using global properties for its work, and that the <var> task will reset any properties’ values. Always use obscure property names for properties used inside macros. One convention suggested by a reviewer[2] was to use tmp. or var. as the prefix, which is what we’ve done.