Add conditions to build.xml