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。