Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

Conversation

@brown
Copy link

@brown brown commented Apr 4, 2023

The groovyc command requires that the Java classpath be specified as one argument, which does not work for long classpaths, since Linux limits the length of any one command argument to 131072 characters. Work around the problem by creating symlinks with short names to classpath jars and using the symlinks instead of the original jar file name paths.

The groovyc command requires that the Java classpath be specified as one
argument, which does not work for long classpaths, since Linux limits the
length of any one command argument to 131072 characters.  Work around the
problem by creating symlinks with short names to classpath jars and using the
symlinks instead of the original jar file name paths.
@brown
Copy link
Author

brown commented Apr 4, 2023

This pull request should fix issue #64

@hvadehra
Copy link
Member

hvadehra commented Sep 5, 2023

This feels like an overly complicated workaround.

I have no experience with groovy so this might be totally off, but from https://docs.groovy-lang.org/latest/html/documentation/tools-groovyc.html it appears to support @argfile arguments? If that's the case, it might be better to write the classpath to a file and pass it in that way.

Looking at groovy.bzl, there is already code that is doing the same thing in the last step where the output classes are passed to the zip tool.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants