Ant will try to copy all inheritedReferences. Some may not exist. Display a warning. I don't understand very well the code - but we take the name from "references" ( which is specified by the user ), and assume that all of them exist. For some reason that's not allways true.