From 26113b1e0f29a6d6b751d009e41123e2ddc75f88 Mon Sep 17 00:00:00 2001 From: Vyacheslav Gerasimov Date: Thu, 28 Nov 2019 16:02:41 +0300 Subject: [PATCH] Create target directories while copying compiler.xml for tests --- .../jetbrains/kotlin/test/JUnit3RunnerWithInnersForJPS.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);