Fix for encoding errors when building Java source

The generated OpenCV Java source can contain characters outside of ASCII on some systems – this patch allows the ant task to compile them.
(cherry picked from commit f3ee55e04222deea30ffe4e89456c220bc75ff1a)
This commit is contained in:
Alexander Bohn / FI$H2k 2013-03-15 06:47:52 -03:00 committed by Andrey Pavlenko
parent cdddecbb93
commit c66cf08ced

View File

@ -8,8 +8,9 @@
<!-- http://stackoverflow.com/questions/3584968/ant-how-to-compile-jar-that-includes-source-attachment --> <!-- http://stackoverflow.com/questions/3584968/ant-how-to-compile-jar-that-includes-source-attachment -->
<javac sourcepath="" srcdir="src" destdir="src" debug="on" includeantruntime="false" > <javac sourcepath="" srcdir="src" destdir="src" debug="on" includeantruntime="false" >
<include name="**/*.java"/> <include name="**/*.java"/>
<compilerarg line="-encoding utf-8"/>
</javac> </javac>
<jar basedir="src" destfile="bin/@JAR_NAME@"/> <jar basedir="src" destfile="bin/@JAR_NAME@"/>
</target> </target>
</project> </project>