File: file_encoding.patch

package info (click to toggle)
libjt400-java 9.4-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 35,356 kB
  • sloc: java: 383,265; xml: 4,278; makefile: 17
file content (38 lines) | stat: -rw-r--r-- 1,532 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Description: Disable PDML runtime which requires a proprietary library,
 fix compile targets for java8, specify source/target 8 and file-encoding.
Origin: upstream, http://www-912.ibm.com/j_dir/JTOpen.nsf/8178b1c14b1e9b6b8525624f0062fe9f/176869EA087DECFA86257F9400563508?OpenDocument
Forwarded: no
Author: Luca Vercelli <luca.vercelli.to@gmail.com>,
        tony mancill <tmancill@debian.org>
Last-Update: 2018-03-26
Index: libjt400-java/build.xml
===================================================================
--- libjt400-java.orig/build.xml
+++ libjt400-java/build.xml
@@ -496,8 +496,9 @@
 	           debug="on"
 	           debuglevel="lines,source"
 	           fork="true"
-		   source="5"
-		   target="5"
+		   source="8"
+		   target="8"
+		   encoding="iso-8859-1"
        	   executable="${jdk18}/bin/javac">
 			<classpath>
 				<pathelement path="${include}"/>
@@ -1355,12 +1356,12 @@
 	           Need "source" to find the pcml.dtd.  -->
 	</target>
 
-	<target name="pcml8" depends="init,compile">
+	<target name="pcml8" depends="init,compile8">
 		<condition property="pcmlRuntimeExists">
 			<and>
 				<available classname="java.nio.Buffer"/>
 				<!-- JDK 1.4 and higher. -->
-				<available classname="com.ibm.as400.data.ProgramCallDocument" classpath="${output}:${include}:${source}"/>
+				<!-- available classname="com.ibm.as400.data.ProgramCallDocument" classpath="${output}:${include}:${source}"/ -->
 			</and>
 		</condition>
 		<fail message="Can't find PCML runtime." unless="pcmlRuntimeExists"/>