Refactor build.xml.