Ant 1.6.1. (bundled with Java ES 4) searches for the following configuration files:
/etc/ant.conf
${HOME}/.ant/ant.conf
${HOME}/antrc
In order for Ant to work in Java ES correctly it needs to ignore the settings in the above listed configuration files and use the settings provided by Java ES. In order to do this, you are requested to perform the following workaround:
Solution (1) use –noconfig with ant (ant –noconfig <your command>)
Solution (2) Remove /etc/ant.conf