Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2016-06-19 11:56:51 +0000
committerMatthias Sohn2016-06-23 12:05:38 +0000
commit2b659e68ad25f9da664c7ef537c115ad60b0b84c (patch)
tree47d08c8349d6665b1c9aab72f720da33b2848e8e
parent7672edff6b1ad9a302cf0933c64daf882c959bd4 (diff)
downloadegit-2b659e68ad25f9da664c7ef537c115ad60b0b84c.tar.gz
egit-2b659e68ad25f9da664c7ef537c115ad60b0b84c.tar.xz
egit-2b659e68ad25f9da664c7ef537c115ad60b0b84c.zip
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: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--pom.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 220a4a1e93..b62acb796f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -77,6 +77,8 @@
<coretest.vmparams></coretest.vmparams>
<uitest.vmparams>-Dorg.eclipse.swtbot.search.timeout=30000 -Dorg.eclipse.swtbot.screenshots.dir=target/screenshots -Xmx1024m -XX:MaxPermSize=150m</uitest.vmparams>
<eclipse-with-smartimport>http://download.eclipse.org/eclipse/updates/4.6milestones/S-4.6M6-201603170200</eclipse-with-smartimport>
+ <!-- set JDK_HOME to JAVA_HOME path of JDK7 installation in order to compile against JDK 7 class library -->
+ <JDK_HOME>${JAVA_HOME}</JDK_HOME>
</properties>
<profiles>
@@ -366,6 +368,8 @@
<arg>-properties</arg>
<arg>${project.basedir}/.settings/org.eclipse.jdt.core.prefs</arg>
<arg>-nowarn</arg>
+ <arg>-bootclasspath</arg>
+ <arg>${JDK_HOME}${file.separator}jre${file.separator}lib${file.separator}rt.jar${path.separator}${JDK_HOME}${file.separator}jre${file.separator}lib${file.separator}jsse.jar${path.separator}${JDK_HOME}${file.separator}jre${file.separator}lib${file.separator}jce.jar</arg>
</compilerArgs>
</configuration>
</plugin>

Back to the top