getProject().setProperty("ivy.module", mdName);
settings.setVariable("ivy.module", mdName);
getProject().setProperty("ivy.revision", mdRev);
settings.setVariable("ivy.revision", mdRev);
for (int i = 0; i < md.getInheritedDescriptors().length; i++) {
ExtendsDescriptor parent = md.getInheritedDescriptors()[i];
String parentOrg = parent.getResolvedParentRevisionId().getOrganisation();
String parentModule = parent.getResolvedParentRevisionId().getName();
String parentRevision = parent.getResolvedParentRevisionId().getRevision();
String parentBranch = parent.getResolvedParentRevisionId().getBranch();
getProject().setProperty("ivy.parent[" + i + "].organisation", parentOrg);
settings.setVariable("ivy.parent[" + i + "].organisation", parentOrg);
getProject().setProperty("ivy.parent[" + i + "].module", parentModule);
settings.setVariable("ivy.parent[" + i + "].module", parentModule);
getProject().setProperty("ivy.parent[" + i + "].revision", parentRevision);