How to refactor ApacheAnt build scripts:
Use ant macros to do an ExtractMethod-like refactoring of build task steps:
CategoryAnt, CategoryRefactoring