public static final class ApplyPatch.Builder extends Object
| Constructor and Description |
|---|
Builder(File patchFile) |
Builder(String patchPath) |
| Modifier and Type | Method and Description |
|---|---|
ApplyPatch |
build() |
ApplyPatch.Builder |
overrideAll(boolean overrideAll)
Sets whether all conflicts should be automatically resolved by overriding the data using those from patch.
|
ApplyPatch.Builder |
overrideModules(boolean overrideModules)
Sets whether modules shall be overridden when there is conflict in the module.
|
ApplyPatch.Builder |
overridePaths(String... pathsToOverride)
Adds specified paths to the list of paths which shall be overridden.
|
ApplyPatch.Builder |
preservePaths(String... pathsToPreserve)
Adds paths to list of paths which should be preserved.
|
public Builder(String patchPath)
patchPath - path to patch filepublic Builder(File patchFile)
patchFile - patch filepublic ApplyPatch.Builder overrideAll(boolean overrideAll)
public ApplyPatch.Builder overrideModules(boolean overrideModules)
public ApplyPatch.Builder overridePaths(String... pathsToOverride)
--override option of the patch apply CLI command.public ApplyPatch.Builder preservePaths(String... pathsToPreserve)
--preserve option of the patch apply CLI command.public ApplyPatch build()
Copyright © 2021. All rights reserved.