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

后端 未结 4 1703
无人共我
无人共我 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 04:41

    A few options:

    1. add -Dfile.encoding=iso-8859-1 to your ANT_OPTS environment variable
    2. use to setup defaults for all of your invocations

提交回复
热议问题