You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by kl...@apache.org on 2016/12/12 22:36:07 UTC
[04/46] geode git commit: GEODE-2098: Moved gfsh history file
location from .gemfire to .geode
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/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/216a1091
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/216a1091
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/216a1091
Branch: refs/heads/feature/GEODE-1930
Commit: 216a10917533a2f287d0bf509424f52716b81c6e
Parents: 4a913fe
Author: adongre <av...@ampool.io>
Authored: Sun Nov 13 19:41:44 2016 +0530
Committer: adongre <ad...@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/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/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());
+ }
}