]> source.dussan.org Git - jgit.git/commit
Allow using JDK 7 bootclasspath when compiling JGit using Java 8 29/75529/3
authorMatthias Sohn <matthias.sohn@sap.com>
Sun, 19 Jun 2016 10:45:37 +0000 (12:45 +0200)
committerSaša Živkov <sasa.zivkov@sap.com>
Tue, 21 Jun 2016 08:55:52 +0000 (10:55 +0200)
commit93486301b3101f2fd403991ad3cd487903f62a70
tree9c01705c7185e28c55fc5b8663300e5b24394103
parent0900dc08f59de482b38862094936e80fca39df2a
Allow using JDK 7 bootclasspath when compiling JGit using Java 8

When compiling jgit using Java 8 set system property JDK_HOME to
JAVA_HOME path of JDK7 installation to compile against JDK 7 class
libraries. Otherwise jgit may hit runtime exceptions when running on
Java 7 (e.g. return type of ConcurrentHashMap.keySet() in JDK 8 class
library doesn't exist in JDK 7).

Example:
$ mvn clean install -DJDK_HOME=/.../jdk1.7.0_80.jdk/Contents/Home

Bug: 496262
Change-Id: Ib6abe5e544e0492e08b342e1a34b182caf25f94f
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
pom.xml