[platform] fixes permissions of JRE binaries copied for update (IDEA-161223)
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Wed, 14 Sep 2016 11:37:06 +0000 (14:37 +0300)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Wed, 14 Sep 2016 11:37:35 +0000 (14:37 +0300)
platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateInstaller.kt

index 2f74cf2617e09c2d02f7f4bcc0e85d6303ea75ff..db76da2848e6fb0e5d02fbc7b14dbff9595e4f0b 100644 (file)
@@ -104,7 +104,7 @@ object UpdateInstaller {
     var java = System.getProperty("java.home")
     if (FileUtil.isAncestor(PathManager.getHomePath(), java, true)) {
       val javaCopy = File(tempDir, "jre")
-      File(java).copyRecursively(javaCopy, true)
+      FileUtil.copyDir(File(java), javaCopy)
       java = javaCopy.path
     }