原因,参考http://zhidao.baidu.com/question/26901568.html
添加如下的红色一行后编译通过
<target name="compile" depends="prepare">
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true" deprecation="true" includeantruntime="on" >
<compilerarg line="-encoding UTF-8 " />
<classpath refid="compile.classpath" />
</javac>
</target>