Package org.gradle.internal.component.local.model

Examples of org.gradle.internal.component.local.model.DefaultProjectComponentIdentifier


public class DefaultComponentIdentifierFactory implements ComponentIdentifierFactory {
    public ComponentIdentifier createComponentIdentifier(ModuleInternal module) {
        String projectPath = module.getProjectPath();

        if(projectPath != null) {
            return new DefaultProjectComponentIdentifier(projectPath);
        }

        return new DefaultModuleComponentIdentifier(module.getGroup(), module.getName(), module.getVersion());
    }
View Full Code Here


public class ComponentIdentifierSerializer implements Serializer<ComponentIdentifier> {
    public ComponentIdentifier read(Decoder decoder) throws IOException {
        byte id = decoder.readByte();

        if(Implementation.BUILD.getId() == id) {
            return new DefaultProjectComponentIdentifier(decoder.readString());
        } else if(Implementation.MODULE.getId() == id) {
            return new DefaultModuleComponentIdentifier(decoder.readString(), decoder.readString(), decoder.readString());
        }

        throw new IllegalArgumentException("Unable to find component identifier with id: " + id);
View Full Code Here

TOP

Related Classes of org.gradle.internal.component.local.model.DefaultProjectComponentIdentifier

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.