Switch compiler sourte/target to 1.6

This commit is contained in:
Mikolaj Izdebski 2019-10-28 13:34:05 +01:00
parent 3d33801027
commit 3f3ad6192c
2 changed files with 4 additions and 4 deletions

View File

@ -6,8 +6,8 @@
# 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 \
+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="<font size='-1'>Copyright (C) 2009 <a href='http://code.google.com/p/atinject/'>\

View File

@ -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