Author: ggregory
Date: Mon Mar 28 17:53:29 2011
New Revision: 1086317

URL: http://svn.apache.org/viewvc?rev=1086317&view=rev
Log:
Fix Ant build by setting source file encoding to UTF-8.

Modified:
    commons/proper/codec/trunk/build.xml
    commons/proper/codec/trunk/default.properties

Modified: commons/proper/codec/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/codec/trunk/build.xml?rev=1086317&r1=1086316&r2=1086317&view=diff
==============================================================================
--- commons/proper/codec/trunk/build.xml (original)
+++ commons/proper/codec/trunk/build.xml Mon Mar 28 17:53:29 2011
@@ -53,7 +53,9 @@ limitations under the License.
     <target name="compile" depends="static" description="Compile shareable 
components">
         <javac srcdir="${source.home}" destdir="${build.home}/classes"
             source="${compile.source}" target="${compile.target}"
-            debug="${compile.debug}" deprecation="${compile.deprecation}" 
optimize="${compile.optimize}">
+            debug="${compile.debug}" deprecation="${compile.deprecation}" 
optimize="${compile.optimize}" 
+                       includeantruntime="${compile.includeantruntime}"
+                       encoding="${compile.encoding}">
             <classpath refid="compile.classpath"/>
         </javac>
         <copy todir="${build.home}/classes" filtering="on">
@@ -87,7 +89,8 @@ limitations under the License.
             windowtitle="${component.title} (Version ${component.version})"
             bottom="${component.name} version ${component.version} - Copyright 
&amp;copy; 2002-${current.year} - Apache Software Foundation"
             use="true"
-            link="http://java.sun.com/products/jdk/1.3/docs/api/";>
+            link="http://download.oracle.com/javase/1.4.2/docs/api/";
+                       encoding="${compile.encoding}">
             <classpath refid="compile.classpath"/>
         </javadoc>
     </target>
@@ -186,7 +189,9 @@ limitations under the License.
     <target name="compile.tests" depends="compile" description="Compile unit 
test cases">
         <javac srcdir="${test.home}" destdir="${build.home}/tests"
             source="${compile.source}" target="${compile.target}"
-            debug="${compile.debug}" deprecation="${compile.deprecation}" 
optimize="${compile.optimize}">
+            debug="${compile.debug}" deprecation="${compile.deprecation}" 
optimize="${compile.optimize}" 
+                       includeantruntime="${compile.includeantruntime}"
+                       encoding="${compile.encoding}">
             <classpath refid="test.classpath"/>
         </javac>
         <copy todir="${build.home}/tests" filtering="on">

Modified: commons/proper/codec/trunk/default.properties
URL: 
http://svn.apache.org/viewvc/commons/proper/codec/trunk/default.properties?rev=1086317&r1=1086316&r2=1086317&view=diff
==============================================================================
--- commons/proper/codec/trunk/default.properties (original)
+++ commons/proper/codec/trunk/default.properties Mon Mar 28 17:53:29 2011
@@ -66,6 +66,12 @@ compile.deprecation = true
 # Should Java compilations set the 'optimize' compiler option?
 compile.optimize = true
 
+# Whether to include the Ant run-time libraries in the classpath
+compile.includeantruntime = false
+
+# Encoding of source files.
+compile.encoding = UTF-8
+
 # Java version settings
 compile.source = 1.4
 compile.target = 1.4


Reply via email to