用ant编译打包时 警告:编码 GBK 的不可映射字符

原因,参考http://zhidao.baidu.com/question/26901568.html

添加如下的红色一行后编译通过
<target name="compile" depends="prepare">        
    <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true" deprecation="true" includeantruntime="on" >
        <compilerarg line="-encoding UTF-8 " />
        <classpath refid="compile.classpath" />
    </javac>
</target>

posted on 2013-08-08 18:19  王健男  阅读(616)  评论(0编辑  收藏  举报