From 7f03b07aee778d8b5f288ff4bab27d72268d89a2 Mon Sep 17 00:00:00 2001 From: aozarov Date: Wed, 27 May 2015 09:48:45 -0700 Subject: [PATCH] replace GCD_VERSION with GCD --- .../com/google/gcloud/datastore/LocalGcdHelper.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcloud-java-datastore/src/test/java/com/google/gcloud/datastore/LocalGcdHelper.java b/gcloud-java-datastore/src/test/java/com/google/gcloud/datastore/LocalGcdHelper.java index cca7e25697f0..47cd63b19ab0 100644 --- a/gcloud-java-datastore/src/test/java/com/google/gcloud/datastore/LocalGcdHelper.java +++ b/gcloud-java-datastore/src/test/java/com/google/gcloud/datastore/LocalGcdHelper.java @@ -57,8 +57,8 @@ public class LocalGcdHelper { public static final String DEFAULT_PROJECT_ID = "projectid1"; public static final int PORT = 8080; - private static final String GCD_VERSION = "gcd-v1beta2-rev1-2.1.2b"; - private static final String GCD_FILENAME = GCD_VERSION + ".zip"; + private static final String GCD = "gcd-v1beta2-rev1-2.1.2b"; + private static final String GCD_FILENAME = GCD + ".zip"; private static final URL GCD_URL; static { @@ -155,13 +155,13 @@ public void start() throws IOException, InterruptedException { } } // cleanup any possible data for the same project - File datasetFolder = new File(gcdFolder, GCD_VERSION + '/' + projectId); + File datasetFolder = new File(gcdFolder, GCD + '/' + projectId); deleteRecurse(datasetFolder.toPath()); // create the datastore for the project ProcessBuilder processBuilder = new ProcessBuilder() .redirectError(ProcessBuilder.Redirect.INHERIT) - .directory(new File(gcdFolder, GCD_VERSION)); + .directory(new File(gcdFolder, GCD)); if (isWindows()) { processBuilder.command("cmd", "/C", "gcd.cmd", "create", "-p", projectId, projectId); processBuilder.redirectOutput(new File("NULL:")); @@ -175,7 +175,7 @@ public void start() throws IOException, InterruptedException { // start the datastore for the project processBuilder = new ProcessBuilder() - .directory(new File(gcdFolder, GCD_VERSION)) + .directory(new File(gcdFolder, GCD)) .redirectErrorStream(true); if (isWindows()) { processBuilder.command("cmd", "/C", "gcd.cmd", "start", "--testing",