From 3f3ad6192c772619bcec8773699cfe2797cf1948 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Oct 28 2019 12:37:21 +0000 Subject: Switch compiler sourte/target to 1.6 --- diff --git a/atinject-target-1.5.patch b/atinject-target-1.5.patch deleted file mode 100644 index 69f07f0..0000000 --- a/atinject-target-1.5.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- atinject-1/build.sh~ 2009-10-14 01:36:31.000000000 +0200 -+++ atinject-1/build.sh 2014-06-09 08:21:06.686274678 +0200 -@@ -10,8 +10,8 @@ - mkdir -p build/tck/dist - - # Compile classes. --javac -g -d build/classes `find src -name *.java` --javac -g -classpath build/classes:lib/junit.jar -d build/tck/classes \ -+javac -source 1.5 -target 1.5 -g -d build/classes `find src -name *.java` -+javac -source 1.5 -target 1.5 -g -classpath build/classes:lib/junit.jar -d build/tck/classes \ - `find tck -name *.java` - - FOOTER="Copyright (C) 2009 \ diff --git a/atinject-target-1.6.patch b/atinject-target-1.6.patch new file mode 100644 index 0000000..097412a --- /dev/null +++ b/atinject-target-1.6.patch @@ -0,0 +1,13 @@ +--- atinject-1/build.sh~ 2009-10-14 01:36:31.000000000 +0200 ++++ atinject-1/build.sh 2014-06-09 08:21:06.686274678 +0200 +@@ -10,8 +10,8 @@ + mkdir -p build/tck/dist + + # Compile classes. +-javac -g -d build/classes `find src -name *.java` +-javac -g -classpath build/classes:lib/junit.jar -d build/tck/classes \ ++javac -source 1.6 -target 1.6 -g -d build/classes `find src -name *.java` ++javac -source 1.6 -target 1.6 -g -classpath build/classes:lib/junit.jar -d build/tck/classes \ + `find tck -name *.java` + + FOOTER="Copyright (C) 2009 \ diff --git a/atinject.spec b/atinject.spec index 8f3734a..b61316b 100644 --- a/atinject.spec +++ b/atinject.spec @@ -18,8 +18,8 @@ Source1: MANIFEST.MF Source2: MANIFEST-TCK.MF Source3: http://www.apache.org/licenses/LICENSE-2.0.txt -# Compile with source/target 1.5 -Patch0: %{name}-target-1.5.patch +# Compile with source/target 1.6 +Patch0: %{name}-target-1.6.patch BuildRequires: javapackages-local BuildRequires: java-devel