public void deliverDependency(ModuleRevisionId depMrid, String version, String status, String depStatus) {
// call deliver target if any
if (_deliverTarget != null && _deliverTarget.trim().length() > 0) {
CallTarget ct = (CallTarget) getProject().createTask("antcall");
ct.setOwningTarget(getOwningTarget());
ct.init();
ct.setTarget(_deliverTarget);
ct.setInheritAll(true);
ct.setInheritRefs(true);
Property param = ct.createParam();
param.setName("dependency.name");
param.setValue(depMrid.getName());
param = ct.createParam();
param.setName("dependency.published.status");
param.setValue(status);
param = ct.createParam();
param.setName("dependency.published.version");
param.setValue(version);
param = ct.createParam();
param.setName("dependency.version");
param.setValue(depMrid.getRevision());
param = ct.createParam();
param.setName("dependency.status");
param.setValue(depStatus==null?"null":depStatus);
MessageImpl impl = IvyContext.getContext().getMessageImpl();
try {
IvyContext.getContext().setMessageImpl(null);
ct.perform();
} finally {
IvyContext.getContext().setMessageImpl(impl);
}
String deliveredProperty = depMrid.getName() + "." + depMrid.getRevision() + ".delivered";