Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workaround for "CreateProcess error=206" #281

Open
koppor opened this issue Jul 3, 2024 · 0 comments · May be fixed by #282
Open

Add workaround for "CreateProcess error=206" #281

koppor opened this issue Jul 3, 2024 · 0 comments · May be fixed by #282

Comments

@koppor
Copy link

koppor commented Jul 3, 2024

On Windows, there is a limit for command line length. When having much dependencies, one hits this limit. A workaround is to convert the --module-path argument into a file (which is a Command-Line Argument File). This is done by the Classpath to File Gradle Plugin.

The gradle team also thought of solutions, but there is no progress (see gradle/gradle#1989).

The "simple" workaround at gradle/gradle#1989 (comment) does not work: The jar files are not found by gradle-modules-plugin.

I wonder whether org.javamodularity.moduleplugin.tasks.RunTaskMutator#updateJavaExecTask can be patched to shorten the command line? I would propose to use "Solution 1" of gradle/gradle#10114 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant