ldapjdk/0001-Use-JDK8-target-as-suggested-by-Fabio.patch
Alexander Scheel d04113c89f
Rebuild for JDK8 compatibility
Signed-off-by: Alexander Scheel <ascheel@redhat.com>
2020-08-17 18:58:23 -04:00

66 lines
1.9 KiB
Diff

From a652cceb4b8993c0af90d3fa590bcf92fadcfd71 Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Mon, 17 Aug 2020 18:54:51 -0400
Subject: [PATCH] Use JDK8 target as suggested by Fabio
Signed-off-by: Alexander Scheel <ascheel@redhat.com>
---
java-sdk/build.xml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/java-sdk/build.xml b/java-sdk/build.xml
index e310c73..545bcb1 100644
--- a/java-sdk/build.xml
+++ b/java-sdk/build.xml
@@ -187,14 +187,20 @@
<javac srcdir="${basedir}/ldapjdk/com" destdir="${jdk.dist}"
excludes="cvs/**"
classpath="${jsselibs}:${slf4j.lib}"
+ source="1.8"
+ target="1.8"
/>
<javac srcdir="${basedir}/ldapjdk/netscape" destdir="${jdk.dist}"
excludes="cvs/**"
classpath="${jsselibs}:${slf4j.lib}"
+ source="1.8"
+ target="1.8"
/>
<javac srcdir="${basedir}/tools" destdir="${jdk.dist}"
excludes="cvs/**"
classpath="${jsselibs}:${slf4j.lib}"
+ source="1.8"
+ target="1.8"
/>
</target>
@@ -202,6 +208,8 @@
<javac srcdir="${basedir}/ldapfilter" destdir="${filter.dist}"
excludes="cvs/**"
classpath="${jdk.dist}:${jsselibs}:${slf4j.lib}"
+ source="1.8"
+ target="1.8"
/>
</target>
@@ -210,6 +218,8 @@
<javac srcdir="${basedir}/ldapbeans" destdir="${jdk.dist}"
excludes="cvs/**"
classpath="${jsselibs}:${slf4j.lib}"
+ source="1.8"
+ target="1.8"
/>
</target>
@@ -218,6 +228,8 @@
<javac srcdir="${basedir}/ldapsp" destdir="${jndi.dist}"
excludes="cvs/**"
classpath="${jsselibs}:${basedir}/ldapsp/lib/jndi.jar:${slf4j.lib}"
+ source="1.8"
+ target="1.8"
/>
</target>
--
2.26.2