The intermediate .class files that Gradle creates under gradle cache while building the java code, is too long. Since most windows apis do not support more than 260 chars of file path length, so some intermediate processes of our custom build system (that runs on windows os) fails.
To that effect, I have following questions:
- Is there any way by which the file path length can be reduced?
- What determines that how many _closure’x’ will be present in name of any .class file.
- Is it possible to make the gradle produce this intermediate .class file with a little modified naming for saving characters - something like $_run_c33_c123… instead of $_run_closure33_closure123…
I’m referring to a path similar to:
/home/flo/.gradle/caches/1.12/scripts/build_4221t4fhf8s71i2mr2d1f2uo5k/ProjectScript/no_buildscript/classes/build_4221t4fhf8s71i2mr2d1f2uo5k$_run_closure33_closure123_closure124_closure125_closure126_closure127_closure128_closure129_closure131_closure132.class
Any help in this direction would be much appreciated.