org.wildfly.extras.creaper.commands.patching
Class ApplyPatch.Builder

java.lang.Object
  extended by org.wildfly.extras.creaper.commands.patching.ApplyPatch.Builder
Enclosing class:
ApplyPatch

public static final class ApplyPatch.Builder
extends Object


Constructor Summary
ApplyPatch.Builder(File patchFile)
           
ApplyPatch.Builder(String patchPath)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplyPatch.Builder

public ApplyPatch.Builder(String patchPath)
Parameters:
patchPath - path to patch file

ApplyPatch.Builder

public ApplyPatch.Builder(File patchFile)
Parameters:
patchFile - patch file
Method Detail

overrideAll

public ApplyPatch.Builder overrideAll(boolean overrideAll)
Sets whether all conflicts should be automatically resolved by overriding the data using those from patch.


overrideModules

public ApplyPatch.Builder overrideModules(boolean overrideModules)
Sets whether modules shall be overridden when there is conflict in the module.


overridePaths

public ApplyPatch.Builder overridePaths(String... pathsToOverride)
Adds specified paths to the list of paths which shall be overridden. For more details, see the --override option of the patch apply CLI command.


preservePaths

public ApplyPatch.Builder preservePaths(String... pathsToPreserve)
Adds paths to list of paths which should be preserved. For more details, see the --preserve option of the patch apply CLI command.


build

public ApplyPatch build()


Copyright © 2020. All rights reserved.