The following section has to be added to build.xml to have Eclipse run Ant.

<!-- javac resolver --> 
    <available 
classname="org.eclipse.core.launcher.Main" 
property="build.compiler" 
value="org.eclipse.pde.internal.core.JDTCompilerAdapter" 
classpath="${java.class.path}" 
/>