[
https://issues.apache.org/jira/browse/GROOVY-7166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15427994#comment-15427994
]
Stefán Freyr Stefánsson commented on GROOVY-7166:
-------------------------------------------------
Really? I'm not too familiar with the way groovy gets compiled so I apologize
for the dumb question but is there no mechanism that checks whether the
generated classes have a file name that is too long? Even if you're not using
ecryptfs you will have a 255 character limitation to the filename. How (if at
all) does groovy handle that? Does it just fail? Or is there something else
that would inhibit the creation of a file that has such a long name?
> Can't build Groovy project due to too long file name
> ----------------------------------------------------
>
> Key: GROOVY-7166
> URL: https://issues.apache.org/jira/browse/GROOVY-7166
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 2.3.7
> Reporter: Marcin Grzejszczak
> Priority: Minor
>
> When I clone groovy-core and execute
> {noformat}
> ./gradlew clean test
> {noformat}
> I get:
> {noformat}
> :compileTestGroovy
> warning: [options] bootstrap class path not set in conjunction with -source
> 1.6
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 1 warning
> startup failed:
> /home/marcin/repo/groovy-fork/target/test-classes/org/codehaus/groovy/ast/builder/AstBuilderFromSpecificationTest$_testSwitchAndCaseAndBreakStatements_closure31_closure120_closure124_closure128_closure129_closure130_closure131.class
> (File name too long)
> /home/marcin/repo/groovy-fork/target/test-classes/org/codehaus/groovy/ast/builder/AstBuilderFromSpecificationTest$_testForStatementAndClosureListExpression_closure36_closure154_closure156_closure160_closure161_closure162.class
> (File name too long)
> {noformat}
> Executed with JDK7 and JDK8. On Linux Mint.
> _uname -a_ execution result:
> {noformat}
>
> Linux someName 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014
> x86_64 x86_64 x86_64 GNU/Linux
> {noformat}
> A workaround is to move the repository to another folder to shorten the path.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)