Package org.apache.ivy.core.module.id

Examples of org.apache.ivy.core.module.id.ModuleId


        }

        Ivy ivy = getIvyInstance();
        IvySettings settings = ivy.getSettings();
        if (branch == null) {
            settings.getDefaultBranch(new ModuleId(organisation, module));
        }
        if (revision == null || revision.length() == 0) {
            revision = "latest.integration";
        } else if (!revision.endsWith("+")) {
            revision = revision + "+";
View Full Code Here


                    "no module name provided for ivy report task: "
                    + "It can either be set explicitely via the attribute 'module' or "
                    + "via 'ivy.module' property or a prior call to <resolve/>");
        }
        if (resolveId == null) {
            resolveId = ResolveOptions.getDefaultResolveId(new ModuleId(organisation, module));
        }

        try {
            String[] confs = splitConfs(conf);
            if (xsl) {
View Full Code Here

            module = PatternMatcher.ANY_EXPRESSION;
        }
        ModuleRevisionId mrid = ModuleRevisionId.newInstance(organisation, module, revision);

        try {
            ModuleId[] mids = ivy.listModules(new ModuleId(organisation, module), settings
                    .getMatcher(matcher));
            ModuleRevisionId[] mrids = new ModuleRevisionId[mids.length];
            for (int i = 0; i < mrids.length; i++) {
                if (branch != null) {
                    mrids[i] = new ModuleRevisionId(mids[i], branch, revision);
View Full Code Here

        XSLTProcess xslt = new XSLTProcess();
        xslt.setTaskName(getTaskName());
        xslt.setProject(getProject());
        xslt.init();

        String resolveId = ResolveOptions.getDefaultResolveId(new ModuleId(organisation, module));
        xslt.setIn(cache.getConfigurationResolveReportInCache(resolveId, "default"));
        xslt.setOut(new File(todir, outputname + "." + xslext));

        xslt.setStyle(xslFile);
View Full Code Here

        XSLTProcess xslt = new XSLTProcess();
        xslt.setTaskName(getTaskName());
        xslt.setProject(getProject());
        xslt.init();

        String resolveId = ResolveOptions.getDefaultResolveId(new ModuleId(organisation, module));
        xslt.setIn(cache.getConfigurationResolveReportInCache(resolveId, "default"));
        xslt.setOut(new File(todir, outputname + "." + ext));
        xslt.setBasedir(cache.getResolutionCacheRoot());
        xslt.setStyle(style);
        xslt.execute();
View Full Code Here

        String insert = "";
    }

    public void addDependency(File ivyFile, String org, String name, String revision,
            String confMapping) throws IOException {
        ModuleRevisionId depId = new ModuleRevisionId(new ModuleId(org, name), revision);
        addDependency(ivyFile, depId, confMapping);
    }
View Full Code Here

        for (Iterator iter = all.iterator(); iter.hasNext();) {
            ArtifactDownloadReport artifact = (ArtifactDownloadReport) iter.next();

            boolean usedProject = false;
            if (conf.isResolveInWorkspace()) {
                ModuleId moduleId = artifact.getArtifact().getModuleRevisionId().getModuleId();
                String moduleName = moduleId.getName();
                ModuleRevisionId moduleRevisionId = (ModuleRevisionId) dependencies.get(moduleName);
                if (moduleRevisionId != null) {
                    IJavaProject project = (IJavaProject) idToJProject.get(moduleId);
                    if (project != null && project.exists()) {
                        IClasspathEntry entry = JavaCore.newProjectEntry(project.getPath());
View Full Code Here

                            .getMatcher(matcherName);
                    if (matcher == null) {
                        addError("unknown matcher: " + matcherName);
                        return;
                    }
                    md.addConflictManager(new ModuleId(org, mod), matcher, cm);
                 } else if ("include".equals(qName) && _state == CONF) {
                    URL url = _ivy.getRelativeUrlResolver().getURL(xmlURL,
                            _ivy.substitute(attributes.getValue("file")),
                            _ivy.substitute(attributes.getValue("url")));
                   
View Full Code Here

                PatternMatcher matcher = getPatternMatcher(attributes.getValue("matcher"));
                String org = _ivy.substitute(attributes.getValue("org"));
                org = org == null ? PatternMatcher.ANY_EXPRESSION : org;
                String module = _ivy.substitute(attributes.getValue("module"));
                module = module == null ? PatternMatcher.ANY_EXPRESSION : module;
                ArtifactId aid = new ArtifactId(new ModuleId(org, module), name, type, ext);
                Map extraAtt = ExtendableItemHelper.getExtraAttributes(attributes, new String[] {
                        "org", "module", "name", "type", "ext", "matcher", "conf"});
                _confAware = new DefaultIncludeRule(aid, matcher, extraAtt);
            } else { // _state == ARTIFACT_EXCLUDE || EXCLUDE
                PatternMatcher matcher = getPatternMatcher(attributes.getValue("matcher"));
                String org = _ivy.substitute(attributes.getValue("org"));
                org = org == null ? PatternMatcher.ANY_EXPRESSION : org;
                String module = _ivy.substitute(attributes.getValue("module"));
                module = module == null ? PatternMatcher.ANY_EXPRESSION : module;
                ArtifactId aid = new ArtifactId(new ModuleId(org, module), name, type, ext);
                Map extraAtt = ExtendableItemHelper.getExtraAttributes(attributes, new String[] {
                        "org", "module", "name", "type", "ext", "matcher", "conf"});
                _confAware = new DefaultExcludeRule(aid, matcher, extraAtt);
            }
            String confs = _ivy.substitute(attributes.getValue("conf"));
View Full Code Here

                                     */
                                    null, extraAtt));
                    }
                }
                for (Iterator iter = exclusions.iterator(); iter.hasNext();) {
                    ModuleId mid = (ModuleId) iter.next();
                    String[] confs = dd.getModuleConfigurations();
                    for (int i = 0; i < confs.length; i++) {
                        dd
                                .addExcludeRule(confs[i], new DefaultExcludeRule(new ArtifactId(
                                        mid, PatternMatcher.ANY_EXPRESSION,
                                        PatternMatcher.ANY_EXPRESSION,
                                        PatternMatcher.ANY_EXPRESSION),
                                        ExactPatternMatcher.INSTANCE, null));
                    }
                }
                md.addDependency(dd);
                dd = null;
            } else if ((organisation != null && module != null)
                   && "project/dependencies/dependency/exclusions/exclusion".equals(context)) {
                exclusions.add(new ModuleId(organisation, module));
                organisation = null;
                module = null;
            }
            if ("project/dependencies/dependency".equals(context)) {
                organisation = null;
View Full Code Here

TOP

Related Classes of org.apache.ivy.core.module.id.ModuleId

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.