From 5ac1db14f0d07a04c8f4c967ef564b015e554e22 Mon Sep 17 00:00:00 2001 From: nik Date: Thu, 2 Mar 2017 20:21:03 +0300 Subject: [PATCH] standalone JPS distribution: extract 'java-runtime' module to a separate JAR This is needed to ensure that the whole jps-builders.jar won't be added to classpath when javac process is forked. Otherwise the classpath will include *.class files which aren't compatible with Java 6, and it'll lead to exceptions if javac from JDK 1.6 is used for compilation. --- build/scripts/layouts.gant | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/scripts/layouts.gant b/build/scripts/layouts.gant index a72557e75cc8..fa96333f7ccb 100644 --- a/build/scripts/layouts.gant +++ b/build/scripts/layouts.gant @@ -44,6 +44,8 @@ def layoutJps(String home, String targetDir, String buildNumber, Closure additio module("javac-ref-scanner-8") module("jps-builders") module("jps-standalone-builder") + } + jar("idea_rt.jar") { module("java-runtime") } jar("jps-builders-6.jar") {