mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-117059 (same temp. directory for updater)
This commit is contained in:
@@ -123,8 +123,9 @@ public class Main {
|
||||
private static void installPatch() throws IOException {
|
||||
String platform = System.getProperty(PLATFORM_PREFIX_PROPERTY, "idea");
|
||||
String patchFileName = ("jetbrains.patch.jar." + platform).toLowerCase();
|
||||
File originalPatchFile = new File(System.getProperty("java.io.tmpdir"), patchFileName);
|
||||
File copyPatchFile = new File(System.getProperty("java.io.tmpdir"), patchFileName + "_copy");
|
||||
String tempDir = System.getProperty("java.io.tmpdir");
|
||||
File originalPatchFile = new File(tempDir, patchFileName);
|
||||
File copyPatchFile = new File(tempDir, patchFileName + "_copy");
|
||||
|
||||
// always delete previous patch copy
|
||||
if (!FileUtilRt.delete(copyPatchFile)) {
|
||||
@@ -153,6 +154,7 @@ public class Main {
|
||||
"-Xmx500m",
|
||||
"-classpath",
|
||||
copyPatchFile.getPath(),
|
||||
"-Djava.io.tmpdir=" + tempDir,
|
||||
"com.intellij.updater.Runner",
|
||||
"install",
|
||||
PathManager.getHomePath());
|
||||
|
||||
Reference in New Issue
Block a user