[#68] Refactored build.xml to reduce duplication.