Skip to content

Commit

Permalink
Merge pull request #11 from equella/issue/10
Browse files Browse the repository at this point in the history
#10 perform optional check for export.items.filter.dateCreated
  • Loading branch information
cbeach47 authored Aug 22, 2018
2 parents 6239ab9 + 2216a94 commit 993b84a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ private void checkConfigsExportItems() {
}
}
checkConfig(EXPORT_ITEMS_COLUMN_FORMAT, true, true);
checkConfig(EXPORT_ITEMS_FILTER_DATE_CREATED, true, false);
checkConfig(EXPORT_ITEMS_ATTACHMENT_PATH_TEMPLATE, true, true);
}

Expand All @@ -188,7 +189,8 @@ private void checkConfig(String key, boolean displayValue, boolean required) {
String value = displayValue ? store.getProperty(key) : "****";
LOGGER.info("Found property [{}]=[{}].", key, value);
} else {
LOGGER.info("Unable to find required property [{}] in {}.", key, filepath);
String state = required ? "required" : "optional";
LOGGER.info("Unable to find {} property [{}] in {}.", state, key, filepath);
if(required) {
validConfig = false;
}
Expand Down

0 comments on commit 993b84a

Please sign in to comment.