require the SDK for running JPS build to be located in the same WSL distribution where the compiled project is stored (IDEA-319240)

- JPS process: added WSL path conversions for the SDK home path
- added diagnostics if build JDK's WSL distribution does not match the project's WSL distribution
- altered JPS build alternative SDK selection policy (triggered if neither of JDKs associated with the project is supported): now canditates will be searched in the ProjectJdkTable, and if nothing suitable is found there, the IDE's runtime SDK will be picked.

GitOrigin-RevId: 666fa9c7ea6657b730bf7641aadc5f22086d89f0
This commit is contained in:
Eugene Zhuravlev
2023-05-05 14:49:08 +02:00
committed by intellij-monorepo-bot
parent 8e3508a60d
commit 17cc4455c8
3 changed files with 82 additions and 35 deletions

View File

@@ -308,6 +308,10 @@ build.process.no.javac.found=No system java compiler is provided by the JRE. Mak
build.process.no.javac.path.found=Cannot determine path to ''tools.jar'' library for {0} ({1})
build.process.no.free.debug.port=Cannot find free port to debug build process
build.process.ecj.path.does.not.exist=Path to eclipse ecj compiler does not exist: {0}
build.process.wsl.distribution.dont.match=Attempting to start build with JDK {0}, which is not stored in the project''s WSL distribution.\n\
The JDK to run the build as well as JDK used by the project must be stored in the same WSL distribution where the project is stored.\n\
A JDK {1} or later is required to run the build. If your project uses older JDK, please add a JDK {1} or newer to your SDK configuration table. This JDK will be automatically picked up to run the build.
jar.artifacts.dialog.label.directory.for.metainf=&Directory for META-INF/MANIFEST.MF:
jar.artifacts.dialog.checkbox.include.tests=&Include tests
jar.artifacts.dialog.label.module=&Module: