Finally got ant build file to work as intended.