Find JavadocAndSourceRootDetection.findSourceRoots which finds java source roots under given folder.
Needed to solve issue #177163
API Change: Addition, the API should be stable in the 6.9.
Created attachment 93230 [details]
[JG01] Typos in Javadoc: "immediatelly", "alredy"
[JG02] I would expect the return value to be Set<FileObject>; you do not want duplicates.
[JG03] Test can use TestFileUtils to be more concise.
[JG04] Test can use assertEquals(collection1.toString(), collection2.toString()) to make differences easier to spot, rather than the custom assertEquals overload. But probably better to just compare the raw collections and let JUnit display the result how it wants. (It is unpleasant to be informed from a Hudson builder that 3 elements were expected and 4 were found, but not to see what the fourth was.)
JG02: Agree, fixed.
I will integrate it tomorrow.
fixed in jet-main: bbd0ba61323d