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

Commit

Permalink
#103 Always initializing properties when initializing PropertiesModul…
Browse files Browse the repository at this point in the history
…eManager

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
  • Loading branch information
rjrudin committed Nov 6, 2018
1 parent 00081e1 commit 7ab3412
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
group=com.marklogic
javadocsDir=../gh-pages-marklogic-java/javadocs
version=3.9.0
version=3.10.0
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public void handleBatch(DatabaseClient client, List<? extends DocumentWriteOpera
} else {
mgr.write(set);
}
if (logger.isInfoEnabled()) {
logger.info("Wrote " + count + " documents to MarkLogic; " + connectionInfo);
if (logger.isDebugEnabled()) {
logger.debug("Wrote " + count + " documents to MarkLogic; " + connectionInfo);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public PropertiesModuleManager(String propertiesFilePath) {

@Override
public void initialize() {
this.props = new Properties();

File propertiesFile = new File(propertiesFilePath);

if (propertiesFile.getParentFile() != null) {
Expand Down

0 comments on commit 7ab3412

Please sign in to comment.