use of com.google.copybara.folder.FolderOriginOptions in project copybara by google.
the class ModuleSupplier method newOptions.
/**
* Returns a new list of {@link Option}s.
*/
public ImmutableList<Option> newOptions(Supplier<GeneralOptions> generalOptionsSupplier) {
GitOptions gitOptions = new GitOptions(generalOptionsSupplier);
GitDestinationOptions gitDestinationOptions = new GitDestinationOptions(generalOptionsSupplier, gitOptions);
return ImmutableList.of(new FolderDestinationOptions(), new FolderOriginOptions(), gitOptions, new GitOriginOptions(), new GithubPrOriginOptions(), gitDestinationOptions, new GithubOptions(generalOptionsSupplier, gitOptions), new GithubDestinationOptions(), new GerritOptions(generalOptionsSupplier, gitOptions), new GitMirrorOptions(generalOptionsSupplier, gitOptions), new WorkflowOptions());
}
use of com.google.copybara.folder.FolderOriginOptions in project copybara by google.
the class ModuleSupplier method newOptions.
/**
* Returns a new list of {@link Option}s.
*/
protected Options newOptions() {
GeneralOptions generalOptions = new GeneralOptions(environment, fileSystem, console);
GitOptions gitOptions = new GitOptions(generalOptions);
GitDestinationOptions gitDestinationOptions = new GitDestinationOptions(generalOptions, gitOptions);
BuildifierOptions buildifierOptions = new BuildifierOptions();
WorkflowOptions workflowOptions = new WorkflowOptions();
return new Options(ImmutableList.of(generalOptions, buildifierOptions, new BuildozerOptions(generalOptions, buildifierOptions, workflowOptions), new FolderDestinationOptions(), new FolderOriginOptions(), gitOptions, new GitOriginOptions(), new GitHubPrOriginOptions(), gitDestinationOptions, new GitHubOptions(generalOptions, gitOptions), new GitHubDestinationOptions(), new GerritOptions(generalOptions, gitOptions), new GitMirrorOptions(), new HgOptions(generalOptions), new HgOriginOptions(), new PatchingOptions(generalOptions), workflowOptions, new RemoteFileOptions(), new DebugOptions(generalOptions)));
}
Aggregations