You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by sa...@apache.org on 2018/08/07 16:35:33 UTC
[geode] branch develop updated: GEODE-5212: Ignore case when
comparing paths. (#2268)
This is an automated email from the ASF dual-hosted git repository.
sai_boorlagadda pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 7b4ca48 GEODE-5212: Ignore case when comparing paths. (#2268)
7b4ca48 is described below
commit 7b4ca48cf86e37e9453f0566833e92e0662f80bf
Author: Sai Boorlagadda <sa...@gmail.com>
AuthorDate: Tue Aug 7 09:35:26 2018 -0700
GEODE-5212: Ignore case when comparing paths. (#2268)
LocatorLauncher and ServerLauncher should ignore
while validating workingDir path.
---
.../src/main/java/org/apache/geode/distributed/LocatorLauncher.java | 2 +-
.../src/main/java/org/apache/geode/distributed/ServerLauncher.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/geode-core/src/main/java/org/apache/geode/distributed/LocatorLauncher.java b/geode-core/src/main/java/org/apache/geode/distributed/LocatorLauncher.java
index 1dbf0af..b4e5cdc 100644
--- a/geode-core/src/main/java/org/apache/geode/distributed/LocatorLauncher.java
+++ b/geode-core/src/main/java/org/apache/geode/distributed/LocatorLauncher.java
@@ -1785,7 +1785,7 @@ public class LocatorLauncher extends AbstractLauncher<String> {
.toLocalizedString("Locator"));
}
- if (!CURRENT_DIRECTORY.equals(getWorkingDirectory())) {
+ if (!CURRENT_DIRECTORY.equalsIgnoreCase(getWorkingDirectory())) {
throw new IllegalStateException(
LocalizedStrings.Launcher_Builder_WORKING_DIRECTORY_OPTION_NOT_VALID_ERROR_MESSAGE
.toLocalizedString("Locator"));
diff --git a/geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java b/geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java
index fd31754..9b7be48 100755
--- a/geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java
+++ b/geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java
@@ -2403,7 +2403,7 @@ public class ServerLauncher extends AbstractLauncher<String> {
.toLocalizedString("Server"));
}
- if (!CURRENT_DIRECTORY.equals(getWorkingDirectory())) {
+ if (!CURRENT_DIRECTORY.equalsIgnoreCase(getWorkingDirectory())) {
throw new IllegalStateException(
LocalizedStrings.Launcher_Builder_WORKING_DIRECTORY_OPTION_NOT_VALID_ERROR_MESSAGE
.toLocalizedString("Server"));