geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lgalli...@apache.org
Subject [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.
Date Tue, 12 Sep 2017 23:14:08 GMT
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 <lgallinat@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" <commits@geode.apache.org>.

Mime
View raw message