cdf.setProperty("artifact." + artifact.getName() + "#" + artifact.getExt() + ".location", origin.getLocation());
cdf.save();
}
public ArtifactOrigin getSavedArtifactOrigin(Artifact artifact) {
PropertiesFile cdf = getCachedDataFile(artifact.getModuleRevisionId());
String location = cdf.getProperty("artifact." + artifact.getName() + "#" + artifact.getExt() + ".location");
boolean isLocal = Boolean.valueOf(cdf.getProperty("artifact." + artifact.getName() + "#" + artifact.getExt() + ".is-local")).booleanValue();
if (location == null) {
// origin has not been specified, return null
return null;
}