How do I set -Dfile.encoding within ant's build.xml?

后端 未结 4 1690
无人共我
无人共我 2020-12-05 04:25

I\'ve got java source files with iso-8859-1 encoding. When I run ant, I get \"warning: unmappable character for encoding UTF-8\". I can avoid this if I run an

4条回答
  •  爱一瞬间的悲伤
    2020-12-05 05:02

    Ant itself cannot set system properties, but if you really want to, you can write a java program which sets the system property, and execute that from within Ant.

提交回复
热议问题