Got the bash script working, refactored common build properties into build.xml file.