Package org.apache.ivy.core.module.descriptor

Examples of org.apache.ivy.core.module.descriptor.MDArtifact


    public Artifact getMainArtifact() {
        return mainArtifact;
    }

    public Artifact getSourceArtifact() {
        return new MDArtifact(
            ivyModuleDescriptor, mrid.getName(), "source", "jar",
            null, Collections.singletonMap("m:classifier", "sources"));
    }
View Full Code Here


            ivyModuleDescriptor, mrid.getName(), "source", "jar",
            null, Collections.singletonMap("m:classifier", "sources"));
    }

    public Artifact getJavadocArtifact() {
        return new MDArtifact(
            ivyModuleDescriptor, mrid.getName(), "javadoc", "jar",
            null, Collections.singletonMap("m:classifier", "javadoc"));
    }
View Full Code Here

    }

    private void addArtifactsFromOwnUsage(Set artifacts, Set dependencyArtifacts) {
        for (Iterator it = dependencyArtifacts.iterator(); it.hasNext();) {
            DependencyArtifactDescriptor dad = (DependencyArtifactDescriptor) it.next();
            artifacts.add(new MDArtifact(md, dad.getName(), dad.getType(), dad.getExt(),
                    dad.getUrl(), dad.getQualifiedExtraAttributes()));
        }
    }
View Full Code Here

                    Map extraAttributes = new HashMap(dad.getQualifiedExtraAttributes());
                    // this is later used to know that this is a merged artifact
                    extraAttributes.put("ivy:merged",
                        dad.getDependencyDescriptor().getParentRevisionId()
                        + " -> " + usage.getNode().getId());
                    artifacts.add(new MDArtifact(md, dad.getName(), dad.getType(), dad.getExt(),
                        dad.getUrl(), extraAttributes));
                }
            }
        }
    }
View Full Code Here

            }
        }
        Artifact[] extraArtifacts = options.getExtraArtifacts();
        if (extraArtifacts != null) {
            for (int i = 0; i < extraArtifacts.length; i++) {
                artifactsSet.add(new MDArtifact(md, extraArtifacts[i].getName(), extraArtifacts[i]
                        .getType(), extraArtifacts[i].getExt(), extraArtifacts[i].getUrl(),
                        extraArtifacts[i].getQualifiedExtraAttributes()));
            }
        }
        // now collects artifacts files
View Full Code Here

    public Artifact getMainArtifact() {
        return mainArtifact;
    }

    public Artifact getSourceArtifact() {
        return new MDArtifact(
            ivyModuleDescriptor, mrid.getName(), "source", "jar",
            null, Collections.singletonMap("m:classifier", "sources"));
    }
View Full Code Here

            ivyModuleDescriptor, mrid.getName(), "source", "jar",
            null, Collections.singletonMap("m:classifier", "sources"));
    }

    public Artifact getSrcArtifact() {
        return new MDArtifact(
            ivyModuleDescriptor, mrid.getName(), "source", "jar",
            null, Collections.singletonMap("m:classifier", "src"));
    }
View Full Code Here

            ivyModuleDescriptor, mrid.getName(), "source", "jar",
            null, Collections.singletonMap("m:classifier", "src"));
    }

    public Artifact getJavadocArtifact() {
        return new MDArtifact(
            ivyModuleDescriptor, mrid.getName(), "javadoc", "jar",
            null, Collections.singletonMap("m:classifier", "javadoc"));
    }
View Full Code Here

    }

    private void addArtifactsFromOwnUsage(Set artifacts, Set dependencyArtifacts) {
        for (Iterator it = dependencyArtifacts.iterator(); it.hasNext();) {
            DependencyArtifactDescriptor dad = (DependencyArtifactDescriptor) it.next();
            artifacts.add(new MDArtifact(md, dad.getName(), dad.getType(), dad.getExt(),
                    dad.getUrl(), dad.getQualifiedExtraAttributes()));
        }
    }
View Full Code Here

            Set mergedDependencyArtifacts = usage.getDependencyArtifactsSet(rootModuleConf);
            if (mergedDependencyArtifacts != null) {
                for (Iterator it = mergedDependencyArtifacts.iterator(); it.hasNext();) {
                    DependencyArtifactDescriptor dad = (DependencyArtifactDescriptor) it.next();
                    Map extraAttributes = new HashMap(dad.getQualifiedExtraAttributes());
                    MDArtifact artifact = new MDArtifact(md, dad.getName(), dad.getType(), dad.getExt(),
                            dad.getUrl(), extraAttributes);
                   
                    if (!artifacts.contains(artifact)) {
                        // this is later used to know that this is a merged artifact
                        extraAttributes.put("ivy:merged",
View Full Code Here

TOP

Related Classes of org.apache.ivy.core.module.descriptor.MDArtifact

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.