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 compaired by their full revision.| Constructor and Description |
|---|
RegexpConflictManager() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection |
resolveConflicts(IvyNode parent,
java.util.Collection 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, toStringpublic void setRegexp(java.lang.String regexp)
public void setIgnoreNonMatching(boolean ignoreNonMatching)
public java.util.Collection resolveConflicts(IvyNode parent, java.util.Collection conflicts)
ConflictManagerparent - the ivy node parent for which the conflict is to be resolvedconflicts - the collection of IvyNode to check for conflicts