Skip to content

Use an args file when command line exceed operating system limits for jpackageΒ #69

@koppor

Description

@koppor

At JabRef/jabref#13719 we get

* What went wrong:
Execution failed for task ':jabgui:jpackageWindows-latest'.
> Process 'command 'C:\hostedtoolcache\windows\Java_Corretto_jdk\24.0.2-12.1\x64\bin\jpackage.exe'' could not be started because the command line exceed operating system limits.

Full run: https://github.com/JabRef/jabref/actions/runs/17105527602/job/48518341838

I think, that command is called by this plugin.

The solution is IMHO to write all arguments to a file and just pass @file to jpackage. (Long documentation: https://docs.oracle.com/en/java/javase/17/docs/specs/man/jpackage.html)


Note: This is similar to the patch to gradle at gradle/gradle#34227 (which will possibly make it into gradle 9.x or 10.x. Let's see)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions