On 23/12/2010, at 6:25 AM, Chris Beams wrote: > A user of one of our Gradle builds is running into 'File name too long' > errors. See the full post: > > http://forum.springsource.org/showthread.php?t=100000 > > He's on an ext4 filesystem which, as he presumes, does have a maximum > filename length of 255 characters.
The limit is, I believe, per file name (ie directory entry), not for the entire path, which can be any length. The longest file name in the path is 105 characters long. Perhaps there's some other limit at play here? Or perhaps the problem is with the filename encoding being used, as the limit is 255 bytes, not characters. > However, I'm on OS X, and its HFS+ filesystem has the same filename length > limit; I've never seen this issue. > > Any advice? Not really. Perhaps some more details about the platform would be useful - which distro, jvm, locale, mount options for the ext4 file system, etc. I can try this out on linux when I get home next week and see if I can reproduce the problem. You could perhaps try shortening the file name: eg rename maven_deployment.gradle. Judging from the file name, there are some deeply nested closures in there which you could try shuffling around to reduce the nesting. -- Adam Murdoch Gradle Developer http://www.gradle.org CTO, Gradle Inc. - Gradle Training, Support, Consulting http://www.gradle.biz
