Attached is a patch that fixed my immediate problem, the ability to build packages using ant that remain compatible with Java 1.6.
Bdale
From 07a73a1b2f10255ec9535f66db82a192780611b7 Mon Sep 17 00:00:00 2001 From: Bdale Garbee <bd...@gag.com> Date: Mon, 20 Aug 2018 20:49:42 -0600 Subject: [PATCH] see if we can make ant stop breaking Java 1.6 compatibility for no reason --- debian/changelog | 6 ++++++ debian/patches/0013-auto-adjust-target.patch | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 582a2fd..fbcd80d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +ant (1.10.5-1.bdale.1) UNRELEASED; urgency=medium + + * adjust the version warping patch to preserve Java 1.6 compatibility + + -- Bdale Garbee <bd...@gag.com> Mon, 20 Aug 2018 20:49:25 -0600 + ant (1.10.5-1) unstable; urgency=medium * Team upload. diff --git a/debian/patches/0013-auto-adjust-target.patch b/debian/patches/0013-auto-adjust-target.patch index 28dc59f..e8ca50c 100644 --- a/debian/patches/0013-auto-adjust-target.patch +++ b/debian/patches/0013-auto-adjust-target.patch @@ -67,10 +67,10 @@ Forwarded: no +class LanguageLevel { + + /** The minimum language level supported by the current javac */ -+ private static final String MIN_LEVEL = "7"; ++ private static final String MIN_LEVEL = "6"; + + /** The list of language levels no longer supported by the current javac */ -+ private static final List<String> UNSUPPORTED_LEVELS = Arrays.asList(new String[]{"1.1", "1.2", "1.3", "1.4", "1.5", "5", "1.6", "6"}); ++ private static final List<String> UNSUPPORTED_LEVELS = Arrays.asList(new String[]{"1.1", "1.2", "1.3", "1.4", "1.5", "5"}); + + /** Detect if a Debian build is in process */ + static boolean isDebianBuild() { -- 2.18.0
signature.asc
Description: PGP signature