2
0
Fork 0
mirror of https://github.com/ethauvin/bld.git synced 2025-04-25 16:27:11 -07:00

Fix to local extension dependency cache

This commit is contained in:
Geert Bevin 2024-07-19 13:27:08 -04:00
parent 522b8b95d7
commit fcd5d01e86

View file

@ -195,7 +195,10 @@ public class BldCache {
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());