File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/org/gradlex/javamodule/testing/internal/provider Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2929import java .util .ArrayList ;
3030import java .util .List ;
3131import java .util .Set ;
32+ import java .util .stream .Collectors ;
3233
3334public class WhiteboxTestCompileArgumentProvider implements CommandLineArgumentProvider {
3435 private final Set <File > mainSourceFolders ;
@@ -56,7 +57,8 @@ public void testRequires(List<String> testRequires) {
5657 @ Override
5758 public Iterable <String > asArguments () {
5859 String moduleName = moduleInfoParser .moduleName (mainSourceFolders );
59- String testSources = testSourceFolders .iterator ().next ().getPath ();
60+ String testSources = testSourceFolders .stream ().map (File ::getPath )
61+ .collect (Collectors .joining (File .pathSeparator ));
6062
6163 List <String > args = new ArrayList <>();
6264
You can’t perform that action at this time.
0 commit comments