ant 执行java文件,java文件中含中文,显示乱码

在build.xml文件run target下添加下面一行

<sysproperty key="file.encoding" value="UTF-8" />

原文地址:https://www.cnblogs.com/chenchen-tester/p/7462793.html