// we can't determine the revision from the pattern, get it
// from the moduledescriptor itself
File temp = File.createTempFile("ivy", artifact.getExt());
temp.deleteOnExit();
repository.get(res.getName(), temp);
ModuleDescriptorParser parser =
ModuleDescriptorParserRegistry.getInstance().getParser(res);
ModuleDescriptor md =
parser.parseDescriptor(
getParserSettings(), temp.toURI().toURL(), res, false);
revision = md.getRevision();
if ((revision == null) || (revision.length() == 0)) {
revision = "working@" + name;
}