IJPL-180687: Various BuildManager fixes to support eel

GitOrigin-RevId: 365796a2c0a54b6b605b0af55233117093456565
This commit is contained in:
Ilya.Kazakevich
2025-08-08 23:21:15 +00:00
committed by intellij-monorepo-bot
parent 41173d896b
commit 633da30a54
@@ -1593,8 +1593,11 @@ public final class BuildManager implements Disposable {
cmdLine.setupAdditionalVMOptions();
Path hostWorkingDirectory = cmdLine.getHostWorkingDirectory();
if (!FileUtil.createDirectory(hostWorkingDirectory.toFile())) {
LOG.warn("Failed to create build working directory " + hostWorkingDirectory);
try {
Files.createDirectories(hostWorkingDirectory);
}
catch (IOException e) {
LOG.warn("Failed to create build working directory " + hostWorkingDirectory, e);
}
if (profileWithYourKit) {
@@ -1704,7 +1707,7 @@ public final class BuildManager implements Disposable {
cmdLine.addParameter("-Djps.report.registered.unexistent.output=true");
}
if (myFallbackSdkHome != null && myFallbackSdkVersion != null) {
if (localProject && myFallbackSdkHome != null && myFallbackSdkVersion != null) {
cmdLine.addPathParameter("-D" + GlobalOptions.FALLBACK_JDK_HOME + '=', myFallbackSdkHome);
cmdLine.addParameter("-D" + GlobalOptions.FALLBACK_JDK_VERSION + '=' + myFallbackSdkVersion);
}