Community
Participate
Working Groups
Version: 3.2.0 Build id: I20060103-0800 Given a project with the project folder as root. When calling JavaConventions#validateClasspath with a new source folder class path entry the returned status is an error saying something like: Cannot nest 'P01/src' inside 'P01'. To enable the nesting exclude 'src/' from 'P01' But excluding a source folder is only possible if the use of exclusion patterns is enabled. If exclusion patterns are disabled the message should read something like: Cannot nest 'P01/src' inside 'P01'.
Created attachment 32459 [details] proposed fix
I wonder which setting is stronger. Maybe the right fix for the user is to enable exclusion patterns instead... By indicating need for excluding, we give a clue about the existence of this feature. Maybe we only need to adjust the wording to account for the fact the excluding is an optional feature (ON by default).
That whould be great too. Maybe something like: To enable the nesting enable exlusion patterns in project P01 and exlude src from P01.
Thanks for the patch. Released it with the message: Cannot nest 'P01/src' inside 'P'. To allow the nesting enable use of exclusion patterns in the preferences of project 'P01' and exclude 'src/' from 'P01' Added regression test ClasspathTests#testClasspathValidation42()
Verified for 3.2 M5 using build I20060214-0010.