geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adon...@apache.org
Subject incubator-geode git commit: GEODE-2098: Moved gfsh history file location from .gemfire to .geode
Date Wed, 16 Nov 2016 04:51:36 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/feature/GEODE-2098 [created] 6e1377a0f


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/6e1377a0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/6e1377a0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/6e1377a0

Branch: refs/heads/feature/GEODE-2098
Commit: 6e1377a0f3f32aef279e9cbea3741c90aad95f30
Parents: 366f089
Author: adongre <avinash@ampool.io>
Authored: Sun Nov 13 19:41:44 2016 +0530
Committer: adongre <avinash@ampool.io>
Committed: Sun Nov 13 19:41:44 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/6e1377a0/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/6e1377a0/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());
+  }
 }


Mime
View raw message