use of com.google.api.codegen.sync.Synchronizer in project toolkit by googleapis.
the class SynchronizerTool method synchronize.
private static void synchronize(String sourcePath, String generatedPath, String baselinePath, boolean autoMerge, boolean autoResolve, boolean ignoreBase) {
ToolOptions options = ToolOptions.create();
options.set(Synchronizer.SOURCE_PATH, sourcePath);
options.set(Synchronizer.GENERATED_PATH, generatedPath);
options.set(Synchronizer.BASELINE_PATH, baselinePath);
options.set(Synchronizer.AUTO_MERGE, autoMerge);
options.set(Synchronizer.AUTO_RESOLUTION, autoResolve);
options.set(Synchronizer.IGNORE_BASE, ignoreBase);
Synchronizer synchronizer = new Synchronizer(options);
synchronizer.run();
}
Aggregations