RFR: 8289771: jpackage: ResourceEditor error when path is overly long on Windows

Alexey Semenyuk asemenyuk at openjdk.org
Tue Nov 19 20:24:59 UTC 2024


On Thu, 14 Nov 2024 04:40:37 GMT, Alexey Semenyuk <asemenyuk at openjdk.org> wrote:

> Fix `ResourceEditor` class to handle long paths.
> 
> Based on https://github.com/openjdk/jdk/pull/9384 PR.
> 
> This repairs app image building on Windows if the path to jpackage temp directory exceeds 260 (`MAX_PATH`) characters. MSI building is still broken and can NOT be repaired due to WiX's limitations.
> 
> Repaired scenario when the `--dest` option references a long path on Windows. Previously jpackage would have failed to build MSI package.
> 
> Other changes:
>  - Rename `Executor.setRemovePath()` into `Executor.setRemovePathEnvVar()` to make the method name match the implementation.
>  - Move the mutable part of `WixPipeline` class into `WixPipeline.Builder` class.
>  - Fixed minor flaws in "WinL10nTest.java"

@sashamatveev ptal

-------------

PR Comment: https://git.openjdk.org/jdk/pull/22092#issuecomment-2486673400


More information about the core-libs-dev mailing list