]> source.dussan.org Git - gitblit.git/commitdiff
Specify encoding of javadoc to "utf-8" 1047/head
authorSilverFox <yyjdelete@126.com>
Fri, 8 Apr 2016 05:18:59 +0000 (13:18 +0800)
committerSilverFox <yyjdelete@126.com>
Fri, 8 Apr 2016 05:18:59 +0000 (13:18 +0800)
That will fix build of javadoc in Windows zh-cn (and maybe some other locale).
Unknown why javac works well.

build.xml

index 2edc853c2db728ee475f8c3dba61862c7c6e5040..f3414d7fb44ac0da8967b70a1831ff003839d678 100644 (file)
--- a/build.xml
+++ b/build.xml
                </zip>\r
                \r
                <!-- Build API JavaDoc jar -->\r
-               <mx:javadoc destdir="${javadoc.dir}" redirect="true">\r
+               <mx:javadoc destdir="${javadoc.dir}" charset="utf-8" encoding="utf-8" docencoding="utf-8" redirect="true">\r
                        <fileset dir="${project.src.dir}" defaultexcludes="yes">\r
                                <include name="com/gitblit/Constants.java"/>\r
                                <include name="com/gitblit/GitBlitException.java"/>\r