Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 0bde90f

Browse files
committed
Ack - forgot to update the last installed timestamp when a resource/option fails to load
1 parent f2581ed commit 0bde90f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/com/marklogic/client/modulesloader/impl/DefaultModulesLoader.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ protected void loadTransforms(Modules modules, Set<File> loadedModules) {
188188
logger.warn(
189189
"Unable to load module from file: " + f.getAbsolutePath() + "; cause: " + e.getMessage(), e);
190190
loadedModules.add(f);
191+
if (modulesManager != null) {
192+
modulesManager.saveLastInstalledTimestamp(f, new Date());
193+
}
191194
} else {
192195
throw e;
193196
}
@@ -210,6 +213,9 @@ protected void loadResources(Modules modules, Set<File> loadedModules) {
210213
logger.warn(
211214
"Unable to load module from file: " + f.getAbsolutePath() + "; cause: " + e.getMessage(), e);
212215
loadedModules.add(f);
216+
if (modulesManager != null) {
217+
modulesManager.saveLastInstalledTimestamp(f, new Date());
218+
}
213219
} else {
214220
throw e;
215221
}

0 commit comments

Comments
 (0)