ant echo不能输出中文
在java中加入这句
<sysproperty key="file.encoding" value="UTF-8" />
example
<!--放置java文件在src中,会自动编译-->
<target name="runjava" depends="compile" >
<!-- <java classname="Helloword" classpath="${dest}"/> -->
<java classname="Client" fork="true" failonerror="true">
<sysproperty key="file.encoding" value="UTF-8" />
<classpath refid="lib.path"></classpath>
<arg value="${varr}"/>
</java>