RFR: 8261845: File permissions of packages built by jpackage
Alan Bateman
alanb at openjdk.java.net
Thu Mar 4 08:24:01 UTC 2021
On Thu, 4 Mar 2021 03:59:27 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:
> - Fixed by adding write permissions to .exe package.
src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WinExeBundler.java line 144:
> 142: Files.copy(exePath, dstExePath);
> 143:
> 144: dstExePath.toFile().setWritable(true, true);
The jlink code in DefaultImageBuilder might be useful if you need finer control on the file permissions.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2822
More information about the core-libs-dev
mailing list