Search in sources :

Example 1 with DefaultLocallyAvailableExternalResource

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);
}
Also used : LocallyAvailableResource(org.gradle.internal.resource.local.LocallyAvailableResource) DefaultLocallyAvailableResource(org.gradle.internal.resource.local.DefaultLocallyAvailableResource) DefaultLocallyAvailableExternalResource(org.gradle.internal.resource.local.DefaultLocallyAvailableExternalResource) DefaultLocallyAvailableResource(org.gradle.internal.resource.local.DefaultLocallyAvailableResource) DefaultLocallyAvailableExternalResource(org.gradle.internal.resource.local.DefaultLocallyAvailableExternalResource) LocallyAvailableExternalResource(org.gradle.internal.resource.local.LocallyAvailableExternalResource)

Example 2 with DefaultLocallyAvailableExternalResource

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);
}
Also used : LocallyAvailableResource(org.gradle.internal.resource.local.LocallyAvailableResource) DefaultLocallyAvailableResource(org.gradle.internal.resource.local.DefaultLocallyAvailableResource) DefaultLocallyAvailableExternalResource(org.gradle.internal.resource.local.DefaultLocallyAvailableExternalResource) DefaultLocallyAvailableResource(org.gradle.internal.resource.local.DefaultLocallyAvailableResource) File(java.io.File)

Aggregations

DefaultLocallyAvailableExternalResource (org.gradle.internal.resource.local.DefaultLocallyAvailableExternalResource)2 DefaultLocallyAvailableResource (org.gradle.internal.resource.local.DefaultLocallyAvailableResource)2 LocallyAvailableResource (org.gradle.internal.resource.local.LocallyAvailableResource)2 File (java.io.File)1 LocallyAvailableExternalResource (org.gradle.internal.resource.local.LocallyAvailableExternalResource)1