Skip to content

Commit

Permalink
Only write in .component if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
fbricon committed Nov 15, 2010
1 parent 7923781 commit d598f7f
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,13 @@ public void setModuleDependencies(IProject project, MavenProject mavenProject, I
}
}

component.setReferences(references.toArray(new IVirtualReference[references.size()]));


IVirtualReference[] newRefs = references.toArray(new IVirtualReference[references.size()]);
if (hasChanged(component.getReferences(), newRefs)){
//Only write in the .component file if necessary
component.setReferences(newRefs);
}

//TODO why a 2nd loop???
for(IMavenProjectFacade dependency : exportedDependencies) {
MavenProject depMavenProject = dependency.getMavenProject(monitor);
Expand Down

0 comments on commit d598f7f

Please sign in to comment.