File tree 1 file changed +10
-6
lines changed
adapter/src/main/kotlin/org/javacs/ktda/jdi/launch 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -75,12 +75,16 @@ class JDILauncher(
75
75
.let { it.find { it.javaClass.name == " com.sun.tools.jdi.SunCommandLineLauncher" } ? : it.firstOrNull() }
76
76
? : throw KotlinDAException (" Could not find a launching connector (for a new debuggee VM)" )
77
77
78
- private fun sourcesRootsOf (projectRoot : Path ): Set <Path > = projectRoot.resolve(" src" )
79
- .let (Files ::list) // main, test
80
- .filter { Files .isDirectory(it) }
81
- .flatMap(Files ::list) // kotlin, java
82
- .filter { Files .isDirectory(it) }
83
- .collect(Collectors .toSet())
78
+ private fun sourcesRootsOf (projectRoot : Path ): Set <Path > =
79
+ Files .walk(projectRoot, 2 ) // root project and submodule
80
+ .filter { Files .isDirectory(it) }
81
+ .map { it.resolve(" src" ) }
82
+ .filter { Files .isDirectory(it) }
83
+ .flatMap(Files ::list) // main, test
84
+ .filter { Files .isDirectory(it) }
85
+ .flatMap(Files ::list) // kotlin, java
86
+ .filter { Files .isDirectory(it) }
87
+ .collect(Collectors .toSet())
84
88
85
89
private fun formatOptions (config : LaunchConfiguration ): String {
86
90
var options = config.vmArguments
You can’t perform that action at this time.
0 commit comments