Add -x option to shell script
Fix ant build target to prevent infinite loops