We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b85bc6c commit 7bc0a25Copy full SHA for 7bc0a25
adapter/src/test/kotlin/org/javacs/ktda/DebugAdapterTestFixture.kt
@@ -15,7 +15,7 @@ abstract class DebugAdapterTestFixture(
15
relativeWorkspaceRoot: String,
16
private val mainClass: String
17
) : IDebugProtocolClient {
18
- val absoluteWorkspaceRoot: Path = Paths.get(DebugAdapterTestFixture::class.java.getResource("/").toURI()).resolve(relativeWorkspaceRoot)
+ val absoluteWorkspaceRoot: Path = Paths.get(DebugAdapterTestFixture::class.java.getResource("/Anchor.txt").toURI()).parent.resolve(relativeWorkspaceRoot)
19
val debugAdapter: KotlinDebugAdapter = JDILauncher()
20
.let(::KotlinDebugAdapter)
21
.also {
adapter/src/test/resources/Anchor.txt
@@ -0,0 +1 @@
1
+Anchor for finding the test/resources directory.
0 commit comments