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

Commit 7ab3412

Browse files
committed
#103 Always initializing properties when initializing PropertiesModuleManager
Fixes a bug that surfaced in ml-gradle where after the resource timestamps file was deleted, initialize was called, but since the file didn't exist anymore, the properties object wasn't recreated
1 parent 00081e1 commit 7ab3412

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
group=com.marklogic
22
javadocsDir=../gh-pages-marklogic-java/javadocs
3-
version=3.9.0
3+
version=3.10.0

src/main/java/com/marklogic/client/ext/batch/DefaultBatchHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public void handleBatch(DatabaseClient client, List<? extends DocumentWriteOpera
5353
} else {
5454
mgr.write(set);
5555
}
56-
if (logger.isInfoEnabled()) {
57-
logger.info("Wrote " + count + " documents to MarkLogic; " + connectionInfo);
56+
if (logger.isDebugEnabled()) {
57+
logger.debug("Wrote " + count + " documents to MarkLogic; " + connectionInfo);
5858
}
5959
}
6060

src/main/java/com/marklogic/client/ext/modulesloader/impl/PropertiesModuleManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public PropertiesModuleManager(String propertiesFilePath) {
2828

2929
@Override
3030
public void initialize() {
31+
this.props = new Properties();
32+
3133
File propertiesFile = new File(propertiesFilePath);
3234

3335
if (propertiesFile.getParentFile() != null) {

0 commit comments

Comments
 (0)