Build Main for Java 1.2

This tiny class uses a very ancient and limited API so it runs on any
JVM. Its entire purpose is to check the minimum Java version, fail if
it is too low, otherwise jump into the real class in another package.

The Maven build used to create this class for Java 1.2, so it would be
helpful to users attempting to launch Gerrit on the wrong JVM. That flag
was lost when the build moved to Buck.

Reset the source and target level to 1.2 so the warning message might
be useful again, especially during the jump from Java 6 to Java 7.

Change-Id: I9187e13ee67c9c482a8e11296649fcf712e5aad1
This commit is contained in:
Shawn Pearce 2013-11-30 01:53:00 -08:00
parent 1564505710
commit ab21a266b1
1 changed files with 2 additions and 0 deletions

View File

@ -9,5 +9,7 @@ java_library(
name = 'main_lib',
srcs = ['src/main/java/Main.java'],
deps = ['//gerrit-launcher:launcher'],
source = '1.2',
target = '1.2',
visibility = ['//tools/eclipse:classpath'],
)