Commit b0baa443 authored by Brian Long's avatar Brian Long
Browse files

added parent search

parent ceef88aa
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -45,10 +45,20 @@ public class AmpDependencyFilter implements DependencyFilter {
		
		String moduleId = artifact.getGroupId() + "." + artifact.getArtifactId();
		if (this.moduleIds.contains(moduleId)) {
			if (this.log.isDebugEnabled())
				this.log.debug("Not packaging library; detected as Alfresco Module: " + node.getArtifact().getArtifactId());
			return false;
		} else if (parents != null) {
			for (DependencyNode parent : parents) {
				String parentModuleId = parent.getArtifact().getGroupId() + "." + parent.getArtifact().getArtifactId();
				if (this.moduleIds.contains(parentModuleId)) {
					this.moduleIds.add(moduleId);
					if (this.log.isDebugEnabled())
						this.log.debug("Not packaging library; detected as dependency to other Alfresco Module: " + node.getArtifact().getArtifactId());
					return false;
				}
			}
		}
		
		File file = artifact.getFile();
		try {