You probally have the jpackage verison of ant on your system. Check the file /etc/ant.conf, it it exists then you do have the jpackage version. This *CANNOT* be used with an ant version from the ant distribution. Just delete the /etc/ant.conf file or use ant --noconfig
Peter