4
我还没有完成与file.encoding and ant。如何设置file.encoding在ant中进行junit测试? junit ant任务不支持编码属性像javac任务确实。如何在ant中为junit测试设置file.encoding?
我试过运行«ant -Dfile.encoding = UTF-8»和«ANT_OPTS =“ - Dfile.encoding = UTF-8”ant»没有成功。测试中的System.getProperty(“file.encoding”)仍然返回MacRoman。