int retCode = cli.execute(args); if (0 != retCode) { return retCode;
public void runCommand(boolean failFast, String... command) throws Exception { assertNotNull(geogigCLI); stdOut.reset(); exitCode = geogigCLI.execute(command); if (failFast && geogigCLI.exception != null) { Exception exception = geogigCLI.exception; throw exception; } }
public List<ObjectId> insertAndAdd(Feature... features) throws Exception { List<ObjectId> ids = insert(features); geogigCLI.execute("add"); return ids; }
public void runCommand(boolean failFast, String... command) throws Exception { assertNotNull(geogigCLI); stdOut.reset(); exitCode = geogigCLI.execute(command); if (failFast && geogigCLI.exception != null) { Exception exception = geogigCLI.exception; throw exception; } }
public List<ObjectId> insertAndAdd(Feature... features) throws Exception { List<ObjectId> ids = insert(features); geogigCLI.execute("add"); return ids; }
public List<ObjectId> insertAndAdd(Feature... features) throws Exception { List<ObjectId> ids = insert(features); geogigCLI.execute("add"); return ids; }
public void runCommand(boolean failFast, String... command) throws Exception { assertNotNull(geogigCLI); stdOut.reset(); exitCode = geogigCLI.execute(command); if (failFast && geogigCLI.exception != null) { Exception exception = geogigCLI.exception; throw exception; } }
/** * Obtains or creates the repository context for the repository named after {@code repoName} * <p> * The context's {@link Platform} is initialized to point to this provider's temporaty folder * home and working dir directories , and it's global config database is initialized with * default {@code user.name} and {@code user.email} values. */ public CLIContext getOrCreateRepositoryContext(final String repoName) throws Exception { CLIContext context = this.repositories.get(repoName); if (context == null) { File homeDirectory = this.homeDir; File workDir = this.workingDir; TestPlatform platform = new TestPlatform(workDir, homeDirectory); URI repoURI = URIBuilder.newRepositoryURI(repoName, platform); context = new CLIContext(repoURI, platform); context.geogigCLI.execute("config", "--global", "user.name", "gabriel"); context.geogigCLI.execute("config", "--global", "user.email", "gabriel@example.com"); repositories.put(repoName, context); } return context; }
/** * Obtains or creates the repository context for the repository named after {@code repoName} * <p> * The context's {@link Platform} is initialized to point to this provider's temporaty folder * home and working dir directories , and it's global config database is initialized with * default {@code user.name} and {@code user.email} values. */ public CLIContext getOrCreateRepositoryContext(final String repoName) throws Exception { CLIContext context = this.repositories.get(repoName); if (context == null) { File homeDirectory = this.homeDir; File workDir = this.workingDir; TestPlatform platform = new TestPlatform(workDir, homeDirectory); URI repoURI = URIBuilder.newRepositoryURI(repoName, platform); context = new CLIContext(repoURI, platform); context.geogigCLI.execute("config", "--global", "user.name", "gabriel"); context.geogigCLI.execute("config", "--global", "user.email", "gabriel@example.com"); repositories.put(repoName, context); } return context; }
/** * Obtains or creates the repository context for the repository named after {@code repoName} * <p> * The context's {@link Platform} is initialized to point to this provider's temporaty folder * home and working dir directories , and it's global config database is initialized with * default {@code user.name} and {@code user.email} values. */ public CLIContext getOrCreateRepositoryContext(final String repoName) throws Exception { CLIContext context = this.repositories.get(repoName); if (context == null) { File homeDirectory = this.homeDir; File workDir = this.workingDir; TestPlatform platform = new TestPlatform(workDir, homeDirectory); URI repoURI = URIBuilder.newRepositoryURI(repoName, platform); context = new CLIContext(repoURI, platform); context.geogigCLI.execute("config", "--global", "user.name", "gabriel"); context.geogigCLI.execute("config", "--global", "user.email", "gabriel@example.com"); repositories.put(repoName, context); } return context; }
exitCode = runFromStdIn(cli, stdin); } else { exitCode = cli.execute(cliArgs);
final int exitCode = geogigCLI.execute(args);