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