【发布时间】:2016-12-06 14:48:00
【问题描述】:
在一个项目中,有一个 ant build.xml 文件,例如连接和缩小 JS 资源。我正在使用 grunt 任务,它监视要缩小的文件,然后运行此任务(我正在使用 grunt Exec Plugin):
exec: {
'run_build_script': 'cd <navigate to the build script directory> && ant'
}
比较生成的脚本后,我注意到变音符号编码不正确。例如 ä 变成 ä
有没有办法像在 eclipse 中一样使用相同的设置?我也试过这条线:
ant -Dfile.encoding=UTF-8
但它没有用。有谁知道这是什么原因以及如何预防?
【问题讨论】:
标签: eclipse ant exec command-prompt