diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/test/JUnit3RunnerWithInnersForJPS.java b/compiler/tests-common/tests/org/jetbrains/kotlin/test/JUnit3RunnerWithInnersForJPS.java index a92505da7a6..13251ccb8ff 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/test/JUnit3RunnerWithInnersForJPS.java +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/test/JUnit3RunnerWithInnersForJPS.java @@ -96,7 +96,9 @@ public class JUnit3RunnerWithInnersForJPS extends Runner implements Filterable, String compilerXmlTargetPath = baseDir + "/META-INF/extensions/compiler.xml"; try { - Files.copy(Paths.get(compilerXmlSourcePath), Paths.get(compilerXmlTargetPath), REPLACE_EXISTING); + Path targetPath = Paths.get(compilerXmlTargetPath); + Files.createDirectories(targetPath.getParent()); + Files.copy(Paths.get(compilerXmlSourcePath),targetPath, REPLACE_EXISTING); } catch (IOException e) { throw new RuntimeException(e);