Examples of MDArtifact


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

            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

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

                        getMd().getResolvedModuleRevisionId(), getMd().getPublicationDate()));
                if (!artifactsDeclared) {
                    String[] confs = getMd().getConfigurationsNames();
                    for (int i = 0; i < confs.length; i++) {
                        getMd().addArtifact(confs[i],
                            new MDArtifact(getMd(), getMd().getModuleRevisionId().getName(),
                                "jar", "jar"));
                    }
                }
                getMd().check();
            } catch (ParserConfigurationException ex) {
View Full Code Here

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

                String type = settings.substitute(attributes.getValue("type"));
                type = type == null ? "jar" : type;
                String ext = settings.substitute(attributes.getValue("ext"));
                ext = ext != null ? ext : type;
                String url = settings.substitute(attributes.getValue("url"));
                artifact = new MDArtifact(getMd(), artName, type, ext, url == null ? null
                        : new URL(url), ExtendableItemHelper.getExtraAttributes(
                            settings, attributes, new String[] {"ext", "type", "name", "conf"}));
                String confs = settings.substitute(attributes.getValue("conf"));
                // only add confs if they are specified. if they aren't, endElement will
                // handle this
View Full Code Here

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

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

            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

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

        Map<String, String> extraAttributes = new HashMap<String, String>();
        if (getClassifier() != null) {
            md.addExtraAttributeNamespace("m", "http://ant.apache.org/ivy/maven");
            extraAttributes.put("m:classifier", getClassifier());
        }
        MDArtifact artifact = new MDArtifact(md, artName, type, ext, null, extraAttributes);
        String[] configurations = getConfs().split(",");
        for (int i = 0; i < configurations.length; i++) {
            if ("*".equals(configurations[i])) {
                String[] declaredConfs = md.getConfigurationsNames();
                for (int j = 0; j < declaredConfs.length; j++) {
                    artifact.addConfiguration(declaredConfs[j]);
                    md.addArtifact(declaredConfs[j], artifact);
                }
            } else {
                //create configuration if it doesn't exist
                if (md.getConfiguration(configurations[i]) == null) {
                    Configuration generatedConfiguration = new Configuration(configurations[i]);
                    md.addConfiguration(generatedConfiguration);
                }
                artifact.addConfiguration(configurations[i]);
                md.addArtifact(configurations[i], artifact);
            }
        }

        ResolutionCacheManager cacheManager = getSettings().getResolutionCacheManager();
View Full Code Here

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

    }

    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

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

                    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

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

                public ModuleDescriptorParser getParser() {
                    return new YamlParser();
                }
            };
            descriptor.addConfiguration(new Configuration("default"));
            descriptor.addArtifact("default", new MDArtifact(descriptor, id.getName(), "jar", "zip"));
            descriptor.setLastModified(rsrc.getLastModified());

            boolean transitiveDependencies = get(data, "transitiveDependencies", boolean.class, true);
           
            if (data.containsKey("require")) {
View Full Code Here

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

                        getMd().getResolvedModuleRevisionId(), getMd().getPublicationDate()));
                if (!artifactsDeclared) {
                    String[] confs = getMd().getConfigurationsNames();
                    for (int i = 0; i < confs.length; i++) {
                        getMd().addArtifact(confs[i],
                            new MDArtifact(getMd(), getMd().getModuleRevisionId().getName(),
                                "jar", "jar"));
                    }
                }
                getMd().check();
            } catch (ParserConfigurationException ex) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.