Search in sources :

Example 1 with Synchronizer

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();
}
Also used : Synchronizer(com.google.api.codegen.sync.Synchronizer) ToolOptions(com.google.api.tools.framework.tools.ToolOptions)

Aggregations

Synchronizer (com.google.api.codegen.sync.Synchronizer)1 ToolOptions (com.google.api.tools.framework.tools.ToolOptions)1