Package org.gradle.internal.component.model

Examples of org.gradle.internal.component.model.ModuleSource


    public ModuleDescriptorCacheEntry read(Decoder decoder) throws Exception {
        byte type = decoder.readByte();
        boolean isChanging = decoder.readBoolean();
        String packaging = decoder.readNullableString();
        long createTimestamp = decoder.readLong();
        ModuleSource moduleSource = moduleSourceSerializer.read(decoder);
        byte[] encodedHash = decoder.readBinary();
        BigInteger hash = new BigInteger(encodedHash);
        return new ModuleDescriptorCacheEntry(type, isChanging, packaging, createTimestamp, hash, moduleSource);
    }
View Full Code Here


        }
    }

    public void resolveArtifact(ComponentArtifactMetaData artifact, ModuleSource source, BuildableArtifactResolveResult result) {
        ModuleComponentRepository sourceRepository = findSourceRepository(source);
        ModuleSource unpackedSource = unpackSource(source);

        // First try to resolve the artifacts locally before going remote
        sourceRepository.getLocalAccess().resolveArtifact(artifact, unpackedSource, result);
        if (!result.hasResult()) {
            sourceRepository.getRemoteAccess().resolveArtifact(artifact, unpackedSource, result);
View Full Code Here

TOP

Related Classes of org.gradle.internal.component.model.ModuleSource

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.