Examples of listModules()


Examples of org.apache.ivy.Ivy.listModules()

            } else {
                criteria = new ModuleRevisionId(new ModuleId(organisation, module), branch,
                        revision);
            }

            ModuleRevisionId[] mrids = ivy.listModules(criteria, settings.getMatcher(matcher));

            // replace all found revisions with the original requested revision
            Set modules = new HashSet();
            for (int i = 0; i < mrids.length; i++) {
                modules.add(ModuleRevisionId.newInstance(mrids[i], revision));
View Full Code Here

Examples of org.apache.ivy.Ivy.listModules()

        extendedAttributes.put("e:att1", "extraatt");
        extendedAttributes.put("e:att2", "extraatt2");
        ModuleRevisionId criteria = ModuleRevisionId.newInstance("test", "a", "*",
            extendedAttributes);

        ModuleRevisionId[] mrids = ivy.listModules(criteria,
            settings.getMatcher(PatternMatcher.REGEXP));

        assertEquals(2, mrids.length);
        ModuleRevisionId mrid = mrids[0];
        assertEquals("extraatt", mrid.getExtraAttribute("att1"));
View Full Code Here

Examples of org.apache.ivy.Ivy.listModules()

            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

Examples of org.apache.ivy.Ivy.listModules()

            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

Examples of org.apache.ivy.Ivy.listModules()

        if (_value == null) {
            throw new BuildException("no value provided for ivy findmodules");
        }
    Ivy ivy = getIvyInstance();
        IvySettings settings = ivy.getSettings();
    ModuleRevisionId[] mrids = ivy.listModules(ModuleRevisionId.newInstance(_organisation, _module, _branch, _revision), settings.getMatcher(_matcher));
    for (int i = 0; i < mrids.length; i++) {
            String name = IvyPatternHelper.substitute(settings.substitute(_property), mrids[i]);
            String value = IvyPatternHelper.substitute(settings.substitute(_value), mrids[i]);
            getProject().setProperty(name, value);
    }
View Full Code Here

Examples of org.apache.ivy.Ivy.listModules()

          _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);
          } else {
View Full Code Here

Examples of org.apache.ivy.Ivy.listModules()

        if (value == null) {
            throw new BuildException("no value provided for ivy listmodules task");
        }
        Ivy ivy = getIvyInstance();
        IvySettings settings = ivy.getSettings();
        ModuleRevisionId[] mrids = ivy.listModules(ModuleRevisionId.newInstance(organisation,
            module, branch, revision), settings.getMatcher(matcher));
        for (int i = 0; i < mrids.length; i++) {
            String name = IvyPatternHelper.substitute(settings.substitute(property), mrids[i]);
            String value = IvyPatternHelper.substitute(settings.substitute(this.value), mrids[i]);
            getProject().setProperty(name, value);
View Full Code Here

Examples of org.apache.ivy.Ivy.listModules()

        if (value == null) {
            throw new BuildException("no value provided for ivy findmodules");
        }
        Ivy ivy = getIvyInstance();
        IvySettings settings = ivy.getSettings();
        ModuleRevisionId[] mrids = ivy.listModules(ModuleRevisionId.newInstance(organisation,
            module, branch, revision), settings.getMatcher(matcher));
        for (int i = 0; i < mrids.length; i++) {
            String name = IvyPatternHelper.substitute(settings.substitute(property), mrids[i]);
            String value = IvyPatternHelper.substitute(settings.substitute(this.value), mrids[i]);
            getProject().setProperty(name, value);
View Full Code Here

Examples of org.apache.ivy.Ivy.listModules()

            } else {
                criteria = new ModuleRevisionId(
                    new ModuleId(organisation, module), branch, revision);
            }
           
            ModuleRevisionId[] mrids = ivy.listModules(criteria, settings.getMatcher(matcher));
           
            // replace all found revisions with the original requested revision
            Set modules = new HashSet();
            for (int i = 0; i < mrids.length; i++) {
                modules.add(ModuleRevisionId.newInstance(mrids[i], revision));
View Full Code Here

Examples of org.apache.ivy.Ivy.listModules()

        Map extendedAttributes = new HashMap();
        extendedAttributes.put("e:att1","extraatt");
        extendedAttributes.put("e:att2","extraatt2");
        ModuleRevisionId criteria = ModuleRevisionId.newInstance("test", "a", "*", extendedAttributes);

        ModuleRevisionId[] mrids = ivy.listModules(criteria, settings.getMatcher(PatternMatcher.REGEXP));

        assertEquals(2, mrids.length);
        ModuleRevisionId mrid = mrids[0];
        assertEquals("extraatt", mrid.getExtraAttribute("att1"));

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.