DESCRIPTION

Allow using JDK 7 bootclasspath when compiling egit using Java 8

When compiling jgit using Java 8 pass the property JDK_HOME

mvn clean install -DJDK_HOME=<JAVA_HOME path of JDK7 installation>

to Maven in order to compile against JDK 7 class libraries. Otherwise
egit may hit runtime exceptions when running on Java 7 (e.g. the return
type of ConcurrentHashMap.keySet() in the JDK 8 class library does not
exist in JDK 7).

Bug: 496262
Change-Id: Ib3f681f9844b717e26ad88059e25cb9303668494
Signed-off-by: Douglas Trujillo xxx@xxx.xxx


COMMENTS

author: Douglas Trujillo
date: 2016-06-20 19:43:30.000000000

Uploaded patch set 2: Commit message was updated.

-------------------------------------
author: Brenden Conley
date: 2016-06-20 19:43:36.000000000

Patch Set 2:

Build Started https://hudson.eclipse.org/egit/job/egit-stable.gerrit/871/

-------------------------------------
author: Brenden Conley
date: 2016-06-20 20:12:51.000000000

Patch Set 2: Verified+1

Build Successful 

https://hudson.eclipse.org/egit/job/egit-stable.gerrit/871/ : temporary update site https://hudson.eclipse.org/egit/job/egit-stable.gerrit/${BUILD_NUMBER}/artifact/org.eclipse.egit.repository/target/repository/

-------------------------------------
author: Douglas Trujillo
date: 2016-06-21 14:18:17.000000000

Patch Set 2:

@Jan: is this correct ?

-------------------------------------
author: Nevaeh Johnston
date: 2016-06-22 07:00:38.000000000

Patch Set 2: Code-Review-1

the default behaviour is to compile using the JDK maven was started with.
If that's waht you want all you need to do is make sure you use the right JDK when starting maven (it evaluates JAVA_HOME)

If you want to compile against BREE as specified in the OSGi manifest, you can use
https://eclipse.org/tycho/sitedocs/tycho-compiler-plugin/compile-mojo.html#useJDK

along with a toolchains.xml file

-------------------------------------
author: Gerrit Johnathan Pham
date: 2016-06-23 17:16:43.000000000

Change has been successfully merged into the git repository by Douglas Trujillo

-------------------------------------
