Search in sources :

Example 1 with PatchModule

use of com.google.copybara.transform.patch.PatchModule in project copybara by google.

the class ModuleSupplier method getModules.

/**
 * Get non-static modules available
 */
public ImmutableSet<Object> getModules(Options options) {
    GeneralOptions general = options.get(GeneralOptions.class);
    FolderModule folderModule = new FolderModule(options.get(FolderOriginOptions.class), options.get(FolderDestinationOptions.class), general);
    return ImmutableSet.of(new Core(general, options.get(WorkflowOptions.class), options.get(DebugOptions.class), folderModule), new GitModule(options), new HgModule(options), folderModule, new FormatModule(options.get(WorkflowOptions.class), options.get(BuildifierOptions.class), general), new BuildozerModule(options.get(WorkflowOptions.class), options.get(BuildozerOptions.class)), new PatchModule(options.get(PatchingOptions.class)), new MetadataModule(), new Authoring.Module(console), new RemoteFileModule(options));
}
Also used : RemoteFileModule(com.google.copybara.remotefile.RemoteFileModule) BuildozerModule(com.google.copybara.buildozer.BuildozerModule) GitModule(com.google.copybara.git.GitModule) FormatModule(com.google.copybara.format.FormatModule) HgModule(com.google.copybara.hg.HgModule) FolderOriginOptions(com.google.copybara.folder.FolderOriginOptions) PatchModule(com.google.copybara.transform.patch.PatchModule) Authoring(com.google.copybara.authoring.Authoring) FolderDestinationOptions(com.google.copybara.folder.FolderDestinationOptions) MetadataModule(com.google.copybara.transform.metadata.MetadataModule) FolderModule(com.google.copybara.folder.FolderModule)

Aggregations

Authoring (com.google.copybara.authoring.Authoring)1 BuildozerModule (com.google.copybara.buildozer.BuildozerModule)1 FolderDestinationOptions (com.google.copybara.folder.FolderDestinationOptions)1 FolderModule (com.google.copybara.folder.FolderModule)1 FolderOriginOptions (com.google.copybara.folder.FolderOriginOptions)1 FormatModule (com.google.copybara.format.FormatModule)1 GitModule (com.google.copybara.git.GitModule)1 HgModule (com.google.copybara.hg.HgModule)1 RemoteFileModule (com.google.copybara.remotefile.RemoteFileModule)1 MetadataModule (com.google.copybara.transform.metadata.MetadataModule)1 PatchModule (com.google.copybara.transform.patch.PatchModule)1