Skip to content

Commit

Permalink
chore: allow to specify empty root for doc store if OS is Windows (#749)
Browse files Browse the repository at this point in the history
Co-authored-by: yurem <Yuriy.Movchan@gmail.com>
  • Loading branch information
yuremm and yurem committed Feb 1, 2022
1 parent 10f6ec1 commit 56f321d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ public void create() {
log.debug("Starting LocalDocumentStoreProvider ...");

if (StringHelper.isEmpty(localDocumentStoreConfiguration.getBaseLocation())) {
String osName = System.getProperty("os.name");
if (StringHelper.isNotEmpty(osName) && osName.toLowerCase().startsWith("windows")) {
baseLocation = "";
return;
}
throw new IllegalArgumentException("Base location should not be empty");
}

Expand Down

0 comments on commit 56f321d

Please sign in to comment.