I know this is an old post, but the link to this post is here:
http://ant.apache.org/manual/
He claims not to set the class path, because Ant can break things out of confusion. If this happens, then to ignore it, add the following:
<property environment="env."/> <property name="env.CLASSPATH" value=""/> <fail message="Unset $CLASSPATH / %CLASSPATH% before running Ant!"> <condition> <not> <equals arg1="${env.CLASSPATH}" arg2=""/> </not> </condition> </fail>
I hope that all this helps if someone stumbles about it, like me.
source share