org.kuali.maven.plugins.graph.sanitize
Class BuildSanitizer

java.lang.Object
  extended by org.kuali.maven.plugins.graph.sanitize.BuildSanitizer
All Implemented Interfaces:
NodeSanitizer<MavenContext>, Sanitizer<Node<MavenContext>>

public class BuildSanitizer
extends Object
implements NodeSanitizer<MavenContext>

This sanitizer takes into account the overall build tree. It assumes that RelatedArtifactSanitizer has completed successfully.

Assuming there is consistency in the omitted nodes we still need to check to make sure the omitted artifacts actually do have a replacement in the build tree.

For State.DUPLICATE nodes that have an exact match in the build tree, this sanitizer takes no action.

State.DUPLICATE nodes that do not have an exact match in the build tree, but do have a similar match get set to State.CONFLICT

State.DUPLICATE nodes that do not have a match of any kind in the build tree, get set to State.UNKNOWN since the data Maven is providing for this dependency is inconsistent.

State.CONFLICT nodes that in reality do have an exact match in the build tree, get set to State.DUPLICATE and the 'related' artifact is removed from the node.

State.CONFLICT nodes that have no matching artifact in the build tree, get set to State.UNKNOWN since the data Maven is providing for this dependency is inconsistent.


Constructor Summary
BuildSanitizer()
           
 
Method Summary
 void sanitize(Node<MavenContext> node)
           
protected  void sanitizeConflict(MavenContext conflict, List<MavenContext> included)
           
protected  void sanitizeDuplicate(MavenContext duplicate, List<MavenContext> included)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildSanitizer

public BuildSanitizer()
Method Detail

sanitize

public void sanitize(Node<MavenContext> node)
Specified by:
sanitize in interface Sanitizer<Node<MavenContext>>

sanitizeDuplicate

protected void sanitizeDuplicate(MavenContext duplicate,
                                 List<MavenContext> included)

sanitizeConflict

protected void sanitizeConflict(MavenContext conflict,
                                List<MavenContext> included)


Copyright © 2010-2012 The Kuali Foundation. All Rights Reserved.