From 519b24f1a5ef851bfa4064f885875739e59b0f3f0ec9249b89f1162f19391ed3 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 14 Sep 2017 11:15:47 +0000 Subject: [PATCH] Fix build with java9 OBS-URL: https://build.opensuse.org/package/show/Java:packages/adaptx?expand=0&rev=18 --- adaptx.changes | 5 +++++ adaptx.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/adaptx.changes b/adaptx.changes index 5a200a6..ea29aa6 100644 --- a/adaptx.changes +++ b/adaptx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 14 11:15:20 UTC 2017 - fstrba@suse.com + +- Fix building with jdk9 by specifying java source and target 1.6 + ------------------------------------------------------------------- Fri May 19 11:39:08 UTC 2017 - tchvatal@suse.com diff --git a/adaptx.spec b/adaptx.spec index 1b1dd99..0382964 100644 --- a/adaptx.spec +++ b/adaptx.spec @@ -70,9 +70,9 @@ done %build perl -p -i -e 's|classic|modern|' src/build.xml export CLASSPATH=$(build-classpath xml-commons-apis log4j xerces-j2 xerces-j2-xml-apis) -ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 -buildfile src/build.xml jar javadoc +ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 -buildfile src/build.xml jar javadoc CLASSPATH=$CLASSPATH:dist/adaptx_%{version}.jar -ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 -buildfile src/build.xml doc +ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 -buildfile src/build.xml doc %install # jar