From 5519ff3f1ccbad463544b3881d877e29ce4577de Mon Sep 17 00:00:00 2001 From: Geert Bevin Date: Tue, 3 Oct 2023 13:36:44 -0400 Subject: [PATCH] vscode related fixes --- src/main/java/rife/bld/wrapper/Wrapper.java | 4 ++-- .../resources/templates/bld/rife2_hello/vscode/settings.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/rife/bld/wrapper/Wrapper.java b/src/main/java/rife/bld/wrapper/Wrapper.java index 1ff47a9..4779312 100644 --- a/src/main/java/rife/bld/wrapper/Wrapper.java +++ b/src/main/java/rife/bld/wrapper/Wrapper.java @@ -138,8 +138,8 @@ public void upgradeVscodeSettings(File destinationDirectory, String version) if (file.exists()) { try { var content = FileUtils.readString(file); - content = BLD_JAR_PATTERN.matcher(content).replaceAll("bld-" + version + ".jar"); - content = RIFE2_JAR_PATTERN.matcher(content).replaceAll("bld-" + version + ".jar"); + content = BLD_JAR_PATTERN.matcher(content).replaceAll("/.bld/dist/bld-" + version + ".jar"); + content = RIFE2_JAR_PATTERN.matcher(content).replaceAll("/.bld/dist/bld-" + version + ".jar"); FileUtils.writeString(content, file); } catch (FileUtilsErrorException e) { throw new IOException(e); diff --git a/src/main/resources/templates/bld/rife2_hello/vscode/settings.json b/src/main/resources/templates/bld/rife2_hello/vscode/settings.json index dd9db25..17ef30a 100644 --- a/src/main/resources/templates/bld/rife2_hello/vscode/settings.json +++ b/src/main/resources/templates/bld/rife2_hello/vscode/settings.json @@ -8,6 +8,7 @@ ], "java.configuration.updateBuildConfiguration": "automatic", "java.project.referencedLibraries": [ + "${HOME}/.bld/dist/bld-{{v version/}}.jar", "lib/compile/*.jar", "lib/runtime/*.jar", "lib/standalone/*.jar",