public class RegexpConflictManager extends AbstractConflictManager
<!-- Match all revisions, but ignore the last dot(.) and the character after it. Used to match api changes in out milestones. --> <conflict-managers> <regexp-cm name="regexp" regexp="(.*)\..$" ignoreNonMatching="true"/> </conflict-managers>The regular expression must contain a capturing group. The group will be used to resolve the conflicts by an String.equals() test. If ignoreNonMatching is false non matching modules will result in an exception. If it is true they will be compared by their full revision.
Constructor and Description |
---|
RegexpConflictManager() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<IvyNode> |
resolveConflicts(IvyNode parent,
java.util.Collection<IvyNode> conflicts)
Resolves the eventual conflicts found in the given collection of IvyNode.
|
void |
setIgnoreNonMatching(boolean ignoreNonMatching) |
void |
setRegexp(java.lang.String regexp) |
getName, getSettings, handleAllBlacklistedRevisions, setName, setSettings, toString
public void setRegexp(java.lang.String regexp)
public void setIgnoreNonMatching(boolean ignoreNonMatching)
public java.util.Collection<IvyNode> resolveConflicts(IvyNode parent, java.util.Collection<IvyNode> conflicts)
ConflictManager
parent
- the ivy node parent for which the conflict is to be resolvedconflicts
- the collection of IvyNode to check for conflictsCopyright ©2007-2020 The Apache Software Foundation, Licensed under Apache License, Version 2.0.