fix failing tests due to IVY-739 changes

git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@632990 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Xavier Hanin 2008-03-03 08:57:06 +00:00
parent a9ba2122fe
commit 0dfdcb94d6
2 changed files with 3 additions and 1 deletions

View File

@ -203,6 +203,7 @@ public class DefaultDependencyDescriptor implements DependencyDescriptor {
public DefaultDependencyDescriptor(ModuleRevisionId mrid, boolean force, boolean changing) {
md = null;
revId = mrid;
dynamicRevId = mrid;
isForce = force;
isChanging = changing;
}

View File

@ -384,7 +384,8 @@ public final class XmlModuleDescriptorUpdater {
String rev = (String) resolvedRevisions.get(systemMrid);
if (rev != null) {
write(" rev=\"" + rev + "\"");
if (attributes.getIndex("revConstraint") == -1) {
if (attributes.getIndex("revConstraint") == -1
&& !rev.equals(systemMrid.getRevision())) {
write(" revConstraint=\"" + systemMrid.getRevision() + "\"");
}
} else {