Skip to content

Commit

Permalink
replace GCD_VERSION with GCD
Browse files Browse the repository at this point in the history
  • Loading branch information
aozarov committed May 27, 2015
1 parent 1616f63 commit 7f03b07
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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:"));
Expand All @@ -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",
Expand Down

0 comments on commit 7f03b07

Please sign in to comment.