use of org.gradle.internal.resource.local.DefaultLocallyAvailableExternalResource in project gradle by gradle.
the class AbstractModuleDescriptorParser method parseMetaData.
public T parseMetaData(DescriptorParseContext ivySettings, File descriptorFile, boolean validate) throws MetaDataParseException {
LocallyAvailableResource localResource = new DefaultLocallyAvailableResource(descriptorFile);
LocallyAvailableExternalResource resource = new DefaultLocallyAvailableExternalResource(descriptorFile.toURI(), localResource);
return parseDescriptor(ivySettings, resource, validate);
}
use of org.gradle.internal.resource.local.DefaultLocallyAvailableExternalResource in project gradle by gradle.
the class ExternalResourceResolverDescriptorParseContext method getMetaDataArtifact.
public LocallyAvailableExternalResource getMetaDataArtifact(ModuleComponentIdentifier moduleComponentIdentifier, ArtifactType artifactType) {
File resolvedArtifactFile = resolveMetaDataArtifactFile(moduleComponentIdentifier, mainResolvers.getComponentResolver(), mainResolvers.getArtifactResolver(), artifactType);
LocallyAvailableResource localResource = new DefaultLocallyAvailableResource(resolvedArtifactFile);
return new DefaultLocallyAvailableExternalResource(resolvedArtifactFile.toURI(), localResource);
}
Aggregations