You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by lg...@apache.org on 2017/09/12 23:14:08 UTC

[geode] 01/01: GEODE-3185 The windows restore script now cds to the directory containing the script. - This makes the windows restore script similar to the unix restore script - The restore script uses relative path names, so the cd is required for it to work.

This is an automated email from the ASF dual-hosted git repository.

lgallinat pushed a commit to branch feature/GEODE-3185
in repository https://gitbox.apache.org/repos/asf/geode.git

commit 6c27086f6025f66a1b7ecd31c4ec1348dfde413e
Author: Lynn Gallinat <lg...@pivotal.io>
AuthorDate: Tue Sep 12 16:01:36 2017 -0700

    GEODE-3185 The windows restore script now cds to the directory containing the script.
     - This makes the windows restore script similar to the unix restore script
     - The restore script uses relative path names, so the cd is required for it to work.
---
 .../java/org/apache/geode/internal/cache/persistence/RestoreScript.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/persistence/RestoreScript.java b/geode-core/src/main/java/org/apache/geode/internal/cache/persistence/RestoreScript.java
index 3076e04..b23bce6 100644
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/persistence/RestoreScript.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/persistence/RestoreScript.java
@@ -163,6 +163,7 @@ public class RestoreScript {
 
     public void writePreamble(PrintWriter writer) {
       writer.println("echo off");
+      writer.println("cd %~dp0");
     }
 
     public void writeComment(PrintWriter writer, String string) {

-- 
To stop receiving notification emails like this one, please contact
"commits@geode.apache.org" <co...@geode.apache.org>.