From fcd5d01e8694c58b74664e40fe963c24764fa278 Mon Sep 17 00:00:00 2001 From: Geert Bevin Date: Fri, 19 Jul 2024 13:27:08 -0400 Subject: [PATCH] Fix to local extension dependency cache --- src/main/java/rife/bld/BldCache.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/rife/bld/BldCache.java b/src/main/java/rife/bld/BldCache.java index e73a9f1..dbe1764 100644 --- a/src/main/java/rife/bld/BldCache.java +++ b/src/main/java/rife/bld/BldCache.java @@ -195,7 +195,10 @@ public void writeCache(List extensionsLocalArtifacts) { var extensions_local = new StringBuilder(); for (var file : extensionsLocalArtifacts) { if (file.exists() && file.canRead()) { - extensions_local.append("\n").append(file.lastModified()).append(':').append(file.getAbsolutePath()); + if (!extensions_local.isEmpty()) { + extensions_local.append("\n"); + } + extensions_local.append(file.lastModified()).append(':').append(file.getAbsolutePath()); } } properties.put(PROPERTY_EXTENSIONS_LOCAL, extensions_local.toString());