Package org.gradle.api.internal.artifacts

Examples of org.gradle.api.internal.artifacts.DefaultResolvedArtifact


        Artifact[] allArtifacts = childNode.getSelectedArtifacts(null);
        Set<ResolvedArtifact> artifacts = new LinkedHashSet<ResolvedArtifact>();
        for (Artifact artifact : allArtifacts) {
            for (DependencyArtifactDescriptor parentArtifact : parentArtifacts) {
                if (isEquals(parentArtifact, artifact)) {
                    DefaultResolvedArtifact resolvedArtifact = createResolvedArtifact(artifact, childNode);
                    resolvedArtifact.setResolvedDependency(resolvedDependency);
                    artifacts.add(resolvedArtifact);
                    break;
                }
            }
        }
View Full Code Here


        }
        return artifacts;
    }

    private DefaultResolvedArtifact createResolvedArtifact(Artifact artifact, IvyNode ivyNode) {
        return new DefaultResolvedArtifact(artifact, ivyNode.getData().getEngine());
    }
View Full Code Here

    }

    public ResolvedArtifact newArtifact(ResolvedConfigurationIdentifier owner, ComponentResolveMetaData component, ComponentArtifactMetaData artifact, ArtifactResolver artifactResolver) {
        Factory<File> artifactSource = new LazyArtifactSource(artifact, component.getSource(), artifactResolver);
        long id = idGenerator.generateId();
        ResolvedArtifact newArtifact = new DefaultResolvedArtifact(new DefaultResolvedModuleVersion(owner.getId()), artifact.getName(), artifactSource, id);
        artifacts.put(id, newArtifact);
        return newArtifact;
    }
View Full Code Here

TOP

Related Classes of org.gradle.api.internal.artifacts.DefaultResolvedArtifact

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.