Repository: incubator-geode Updated Branches: refs/heads/develop 4a913fe7a -> 216a10917
GEODE-2098: Moved gfsh history file location from .gemfire to .geode Made the code changes and added a test for the same. Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/216a1091 Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/216a1091 Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/216a1091 Branch: refs/heads/develop Commit: 216a10917533a2f287d0bf509424f52716b81c6e Parents: 4a913fe Author: adongre <avin...@ampool.io> Authored: Sun Nov 13 19:41:44 2016 +0530 Committer: adongre <adon...@apache.org> Committed: Wed Nov 16 10:38:23 2016 +0530 ---------------------------------------------------------------------- .../geode/management/internal/cli/shell/GfshConfig.java | 2 +- .../internal/cli/shell/GfshConfigInitFileJUnitTest.java | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/216a1091/geode-core/src/main/java/org/apache/geode/management/internal/cli/shell/GfshConfig.java ---------------------------------------------------------------------- diff --git a/geode-core/src/main/java/org/apache/geode/management/internal/cli/shell/GfshConfig.java b/geode-core/src/main/java/org/apache/geode/management/internal/cli/shell/GfshConfig.java index 0352987..c35f420 100644 --- a/geode-core/src/main/java/org/apache/geode/management/internal/cli/shell/GfshConfig.java +++ b/geode-core/src/main/java/org/apache/geode/management/internal/cli/shell/GfshConfig.java @@ -201,7 +201,7 @@ public class GfshConfig { private static String getHomeGemFireDirectory() { String userHome = System.getProperty("user.home"); - String homeDirPath = userHome + "/.gemfire"; + String homeDirPath = userHome + "/.geode"; File alternateDir = new File(homeDirPath); if (!alternateDir.exists()) { if (!alternateDir.mkdirs()) { http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/216a1091/geode-core/src/test/java/org/apache/geode/management/internal/cli/shell/GfshConfigInitFileJUnitTest.java ---------------------------------------------------------------------- diff --git a/geode-core/src/test/java/org/apache/geode/management/internal/cli/shell/GfshConfigInitFileJUnitTest.java b/geode-core/src/test/java/org/apache/geode/management/internal/cli/shell/GfshConfigInitFileJUnitTest.java index 5149b02..744bcc6 100755 --- a/geode-core/src/test/java/org/apache/geode/management/internal/cli/shell/GfshConfigInitFileJUnitTest.java +++ b/geode-core/src/test/java/org/apache/geode/management/internal/cli/shell/GfshConfigInitFileJUnitTest.java @@ -26,6 +26,8 @@ import org.junit.rules.TemporaryFolder; import org.apache.geode.test.junit.categories.IntegrationTest; +import java.io.File; + @Category(IntegrationTest.class) public class GfshConfigInitFileJUnitTest { @@ -167,4 +169,9 @@ public class GfshConfigInitFileJUnitTest { assertNull(result); } + @Test + public void historyFileLocationTest() throws Exception { + GfshConfig gfshConfig = new GfshConfig(); + assertEquals(".geode", (new File(gfshConfig.getHistoryFileName())).getParentFile().getName()); + } }