Refactor build.xml to use properties and dependencies