Search in sources :

Example 1 with GithubOptions

use of com.google.copybara.git.GithubOptions 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());
}
Also used : FolderDestinationOptions(com.google.copybara.folder.FolderDestinationOptions) GerritOptions(com.google.copybara.git.GerritOptions) GithubOptions(com.google.copybara.git.GithubOptions) GithubDestinationOptions(com.google.copybara.git.GithubDestinationOptions) GitMirrorOptions(com.google.copybara.git.GitMirrorOptions) GithubPrOriginOptions(com.google.copybara.git.GithubPrOriginOptions) GitOptions(com.google.copybara.git.GitOptions) GitDestinationOptions(com.google.copybara.git.GitDestinationOptions) FolderOriginOptions(com.google.copybara.folder.FolderOriginOptions) GitOriginOptions(com.google.copybara.git.GitOriginOptions)

Example 2 with GithubOptions

use of com.google.copybara.git.GithubOptions 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)));
}
Also used : GitMirrorOptions(com.google.copybara.git.GitMirrorOptions) HgOriginOptions(com.google.copybara.hg.HgOriginOptions) HgOptions(com.google.copybara.hg.HgOptions) GitHubOptions(com.google.copybara.git.GitHubOptions) GitHubPrOriginOptions(com.google.copybara.git.GitHubPrOriginOptions) GitHubDestinationOptions(com.google.copybara.git.GitHubDestinationOptions) PatchingOptions(com.google.copybara.transform.patch.PatchingOptions) FolderOriginOptions(com.google.copybara.folder.FolderOriginOptions) DebugOptions(com.google.copybara.transform.debug.DebugOptions) BuildozerOptions(com.google.copybara.buildozer.BuildozerOptions) BuildifierOptions(com.google.copybara.format.BuildifierOptions) GitOptions(com.google.copybara.git.GitOptions) FolderDestinationOptions(com.google.copybara.folder.FolderDestinationOptions) GitDestinationOptions(com.google.copybara.git.GitDestinationOptions) GitOriginOptions(com.google.copybara.git.GitOriginOptions) RemoteFileOptions(com.google.copybara.remotefile.RemoteFileOptions) GerritOptions(com.google.copybara.git.GerritOptions) RemoteFileOptions(com.google.copybara.remotefile.RemoteFileOptions) BuildifierOptions(com.google.copybara.format.BuildifierOptions) GerritOptions(com.google.copybara.git.GerritOptions) HgOptions(com.google.copybara.hg.HgOptions) BuildozerOptions(com.google.copybara.buildozer.BuildozerOptions) FolderOriginOptions(com.google.copybara.folder.FolderOriginOptions) DebugOptions(com.google.copybara.transform.debug.DebugOptions) GitOriginOptions(com.google.copybara.git.GitOriginOptions) GitHubOptions(com.google.copybara.git.GitHubOptions) PatchingOptions(com.google.copybara.transform.patch.PatchingOptions) HgOriginOptions(com.google.copybara.hg.HgOriginOptions) FolderDestinationOptions(com.google.copybara.folder.FolderDestinationOptions) GitMirrorOptions(com.google.copybara.git.GitMirrorOptions) GitOptions(com.google.copybara.git.GitOptions) GitDestinationOptions(com.google.copybara.git.GitDestinationOptions) GitHubPrOriginOptions(com.google.copybara.git.GitHubPrOriginOptions) GitHubDestinationOptions(com.google.copybara.git.GitHubDestinationOptions)

Aggregations

FolderDestinationOptions (com.google.copybara.folder.FolderDestinationOptions)2 FolderOriginOptions (com.google.copybara.folder.FolderOriginOptions)2 GerritOptions (com.google.copybara.git.GerritOptions)2 GitDestinationOptions (com.google.copybara.git.GitDestinationOptions)2 GitMirrorOptions (com.google.copybara.git.GitMirrorOptions)2 GitOptions (com.google.copybara.git.GitOptions)2 GitOriginOptions (com.google.copybara.git.GitOriginOptions)2 BuildozerOptions (com.google.copybara.buildozer.BuildozerOptions)1 BuildifierOptions (com.google.copybara.format.BuildifierOptions)1 GitHubDestinationOptions (com.google.copybara.git.GitHubDestinationOptions)1 GitHubOptions (com.google.copybara.git.GitHubOptions)1 GitHubPrOriginOptions (com.google.copybara.git.GitHubPrOriginOptions)1 GithubDestinationOptions (com.google.copybara.git.GithubDestinationOptions)1 GithubOptions (com.google.copybara.git.GithubOptions)1 GithubPrOriginOptions (com.google.copybara.git.GithubPrOriginOptions)1 HgOptions (com.google.copybara.hg.HgOptions)1 HgOriginOptions (com.google.copybara.hg.HgOriginOptions)1 RemoteFileOptions (com.google.copybara.remotefile.RemoteFileOptions)1 DebugOptions (com.google.copybara.transform.debug.DebugOptions)1 PatchingOptions (com.google.copybara.transform.patch.PatchingOptions)1