From b9e51d7ff1c90e51988370a9dbbf56cfb0dee94b Mon Sep 17 00:00:00 2001 From: mmews Date: Mon, 22 Jan 2024 14:27:54 +0100 Subject: [PATCH] fix xt framework --- .../eclipse/n4js/ide/tests/helper/server/xt/XtIdeTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testhelpers/org.eclipse.n4js.ide.tests.helper/src/org/eclipse/n4js/ide/tests/helper/server/xt/XtIdeTest.java b/testhelpers/org.eclipse.n4js.ide.tests.helper/src/org/eclipse/n4js/ide/tests/helper/server/xt/XtIdeTest.java index d4912189fb..2b998542b6 100644 --- a/testhelpers/org.eclipse.n4js.ide.tests.helper/src/org/eclipse/n4js/ide/tests/helper/server/xt/XtIdeTest.java +++ b/testhelpers/org.eclipse.n4js.ide.tests.helper/src/org/eclipse/n4js/ide/tests/helper/server/xt/XtIdeTest.java @@ -773,10 +773,12 @@ public void generated_dts(XtMethodData data) throws IOException { for (Project project : allProjectsWithGenerateDts) { File workingDir = getProjectRoot(project.getName()); + Path wdSrcDir = workingDir.toPath().resolve("src-gen"); + wdSrcDir.toFile().mkdirs(); // might not exist e.g. if is a definition project // copy n4jsglobals.d.ts to output dir to make d.ts globals available Path n4jsGlobalsDTS = N4jsLibsAccess.getN4JSGlobalsDTS(); - Files.copy(n4jsGlobalsDTS, workingDir.toPath().resolve("src-gen/n4jsglobals.d.ts")); + Files.copy(n4jsGlobalsDTS, wdSrcDir.resolve("n4jsglobals.d.ts")); ProcessResult result; try {