File: source-encoding.patch

package info (click to toggle)
httpunit 1.7%2Bdfsg-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,580 kB
  • sloc: java: 33,665; xml: 484; makefile: 10
file content (21 lines) | stat: -rw-r--r-- 1,096 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Set the source encoding to fix the build failures with Java 9+
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/build.xml
+++ b/build.xml
@@ -133,6 +133,7 @@
 <target name="compile" depends="prepare,check_for_optional_packages,compile-for-java2">
     <mkdir dir="${build.classes}" />
     <javac srcdir="${src.dir}" destdir="${build.classes}"
+           encoding="ISO-8859-1"
            debug="${debug}" deprecation="${deprecation}" optimize="${optimize}">
         <classpath refid="base.classpath" />
         <exclude name="**/JTidyHTMLParser.java" unless="jtidy.present" />
@@ -257,6 +258,7 @@
              destdir="${javadoc.dir}" author="true" version="true"
              windowtitle="${Name} ${version} API" doctitle="${Name}"
              additionalparam="-notimestamp"
+             encoding="ISO-8859-1"
              footer="Copyright &amp;copy; 2000-2008 Russell Gold. See &lt;a target=&quot;_top&quot; href=&quot;../license.html&quot;&gt;license agreement&lt;/A&gt; for rights granted." >
         <classpath refid="base.classpath"/>
     </javadoc>