Skip to content

Commit bea0d68

Browse files
ting-yuanneetopia
authored andcommitted
multi-module tests: make sure javaOut exists before passing to compiler
1 parent 494f7e9 commit bea0d68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-plugin/src/test/kotlin/com/google/devtools/ksp/test/AbstractKotlinKSPTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ abstract class AbstractKotlinKSPTest : KotlinBaseTest<AbstractKotlinKSPTest.KspT
147147
GenerationUtils.compileFilesTo(moduleFiles.psiFiles, environment, outDir)
148148
if (hasJavaSources) {
149149
// need to compile java sources as well
150-
val javaOutDir = module.rootDir.resolve("javaOut")
150+
val javaOutDir = module.rootDir.resolve("javaOut").apply { mkdirs() }
151151
val classpath = (dependencies + KotlinTestUtils.getAnnotationsJar() + module.outDir)
152152
.joinToString(":") { it.absolutePath }
153153
val options = listOf(

0 commit comments

Comments
 (0)