Skip to content

Commit be70512

Browse files
committed
Fix Ant build by setting source file encoding to UTF-8.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1086317 13f79535-47bb-0310-9956-ffa450edef68
1 parent c48d20a commit be70512

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

build.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ limitations under the License.
5353
<target name="compile" depends="static" description="Compile shareable components">
5454
<javac srcdir="${source.home}" destdir="${build.home}/classes"
5555
source="${compile.source}" target="${compile.target}"
56-
debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}">
56+
debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"
57+
includeantruntime="${compile.includeantruntime}"
58+
encoding="${compile.encoding}">
5759
<classpath refid="compile.classpath"/>
5860
</javac>
5961
<copy todir="${build.home}/classes" filtering="on">
@@ -87,7 +89,8 @@ limitations under the License.
8789
windowtitle="${component.title} (Version ${component.version})"
8890
bottom="${component.name} version ${component.version} - Copyright &amp;copy; 2002-${current.year} - Apache Software Foundation"
8991
use="true"
90-
link="http://java.sun.com/products/jdk/1.3/docs/api/">
92+
link="http://download.oracle.com/javase/1.4.2/docs/api/"
93+
encoding="${compile.encoding}">
9194
<classpath refid="compile.classpath"/>
9295
</javadoc>
9396
</target>
@@ -186,7 +189,9 @@ limitations under the License.
186189
<target name="compile.tests" depends="compile" description="Compile unit test cases">
187190
<javac srcdir="${test.home}" destdir="${build.home}/tests"
188191
source="${compile.source}" target="${compile.target}"
189-
debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}">
192+
debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"
193+
includeantruntime="${compile.includeantruntime}"
194+
encoding="${compile.encoding}">
190195
<classpath refid="test.classpath"/>
191196
</javac>
192197
<copy todir="${build.home}/tests" filtering="on">

default.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ compile.deprecation = true
6666
# Should Java compilations set the 'optimize' compiler option?
6767
compile.optimize = true
6868

69+
# Whether to include the Ant run-time libraries in the classpath
70+
compile.includeantruntime = false
71+
72+
# Encoding of source files.
73+
compile.encoding = UTF-8
74+
6975
# Java version settings
7076
compile.source = 1.4
7177
compile.target = 1.4

0 commit comments

Comments
 (0)