Class MergeUtility.MergeOptions

  • Enclosing class:
    MergeUtility

    public static class MergeUtility.MergeOptions
    extends java.lang.Object
    Options for specifying some parts of the merge operation.
    • Constructor Detail

      • MergeOptions

        public MergeOptions()
    • Method Detail

      • isHandleRemoveRunMode

        public boolean isHandleRemoveRunMode()
        Returns true if the remove run mode should be respected.
        Returns:
        true or false
      • setHandleRemoveRunMode

        public MergeUtility.MergeOptions setHandleRemoveRunMode​(boolean handleRemoveRunMode)
        Set to true if the remove run mode should be respected.
        Parameters:
        handleRemoveRunMode - Whether the remove run mode should be respected.
        Returns:
        This instance.
      • isLatestArtifactWins

        public boolean isLatestArtifactWins()
        Returns true if the latest artifact should win on a merge.
        Returns:
        true or false if the artifact with the highest version should win
      • setLatestArtifactWins

        public MergeUtility.MergeOptions setLatestArtifactWins​(boolean latestArtifactWins)
        Set to true if the latest artifact should win on a merge. Set to false if the artifact with the highest version should win
        Parameters:
        latestArtifactWins - Whether the latest artifact should win
        Returns:
        This instance.