Package org.apache.ivy.core.event.resolve

Examples of org.apache.ivy.core.event.resolve.StartResolveEvent


           
            if (options.getResolveId() == null) {
              options.setResolveId(ResolveOptions.getDefaultResolveId(md));
            }
           
            _eventManager.fireIvyEvent(new StartResolveEvent(md, confs));
           
            long start = System.currentTimeMillis();
            Message.info(":: resolving dependencies :: "+md.getResolvedModuleRevisionId()+(options.isTransitive()?"":" [not transitive]"));
            Message.info("\tconfs: "+Arrays.asList(confs));
            Message.verbose("\tvalidate = "+options.isValidate());
View Full Code Here


            if (options.getResolveId() == null) {
                options.setResolveId(ResolveOptions.getDefaultResolveId(md));
            }

            eventManager.fireIvyEvent(new StartResolveEvent(md, confs));

            long start = System.currentTimeMillis();
            if (ResolveOptions.LOG_DEFAULT.equals(options.getLog())) {
                Message.info(":: resolving dependencies :: " + md.getResolvedModuleRevisionId()
                        + (options.isTransitive() ? "" : " [not transitive]"));
View Full Code Here

    private StartResolveEvent ev;
    private LogTrigger trigger;
    private File testDir;

    protected void setUp() {
        ev = new StartResolveEvent(
            DefaultModuleDescriptor.newBasicInstance(ModuleRevisionId.parse("o#A;1"), new Date()),
            new String[] {"c"});
        trigger = new LogTrigger();
        trigger.setEvent(ev.getName());
        testDir = new File("build/test/trigger");
View Full Code Here

    }

    public void testSimple() {
        IvyEventFilter f = new IvyEventFilter("pre-resolve", null, null);

        assertTrue(f.accept(new StartResolveEvent(md, new String[] {"default"})));
        assertFalse(f.accept(new EndResolveEvent(md, new String[] {"default"},
                new ResolveReport(md))));
    }
View Full Code Here

    }

    public void testSimpleExpression() {
        IvyEventFilter f = new IvyEventFilter("pre-resolve", "organisation = foo", null);

        assertTrue(f.accept(new StartResolveEvent(md, new String[] {"default"})));
        assertFalse(f.accept(new StartResolveEvent(md2, new String[] {"default"})));
        assertTrue(f.accept(new StartResolveEvent(md4, new String[] {"default"})));

        f = new IvyEventFilter("pre-resolve", "module = bar", null);

        assertTrue(f.accept(new StartResolveEvent(md, new String[] {"default"})));
        assertTrue(f.accept(new StartResolveEvent(md2, new String[] {"default"})));
        assertFalse(f.accept(new StartResolveEvent(md3, new String[] {"default"})));
        assertFalse(f.accept(new StartResolveEvent(md4, new String[] {"default"})));

        f = new IvyEventFilter("pre-resolve", "organisation = foo, foo2", null);

        assertTrue(f.accept(new StartResolveEvent(md, new String[] {"default"})));
        assertTrue(f.accept(new StartResolveEvent(md2, new String[] {"default"})));
        assertFalse(f.accept(new StartResolveEvent(md3, new String[] {"default"})));
        assertTrue(f.accept(new StartResolveEvent(md4, new String[] {"default"})));
    }
View Full Code Here

    public void testAndExpression() {
        IvyEventFilter f = new IvyEventFilter("pre-resolve", "organisation = foo AND module = bar",
                null);

        assertTrue(f.accept(new StartResolveEvent(md, new String[] {"default"})));
        assertFalse(f.accept(new StartResolveEvent(md2, new String[] {"default"})));
        assertFalse(f.accept(new StartResolveEvent(md4, new String[] {"default"})));

        f = new IvyEventFilter("pre-resolve", "organisation = foo,foo2 AND module = bar", null);

        assertTrue(f.accept(new StartResolveEvent(md, new String[] {"default"})));
        assertTrue(f.accept(new StartResolveEvent(md2, new String[] {"default"})));
        assertFalse(f.accept(new StartResolveEvent(md3, new String[] {"default"})));
        assertFalse(f.accept(new StartResolveEvent(md4, new String[] {"default"})));
    }
View Full Code Here

    public void testOrExpression() {
        IvyEventFilter f = new IvyEventFilter("pre-resolve", "organisation = foo3 OR module = bar",
                null);

        assertTrue(f.accept(new StartResolveEvent(md, new String[] {"default"})));
        assertTrue(f.accept(new StartResolveEvent(md2, new String[] {"default"})));
        assertTrue(f.accept(new StartResolveEvent(md3, new String[] {"default"})));
        assertFalse(f.accept(new StartResolveEvent(md4, new String[] {"default"})));
    }
View Full Code Here

    }

    public void testNotExpression() {
        IvyEventFilter f = new IvyEventFilter("pre-resolve", "NOT organisation = foo", null);

        assertFalse(f.accept(new StartResolveEvent(md, new String[] {"default"})));
        assertTrue(f.accept(new StartResolveEvent(md2, new String[] {"default"})));
        assertTrue(f.accept(new StartResolveEvent(md3, new String[] {"default"})));
        assertFalse(f.accept(new StartResolveEvent(md4, new String[] {"default"})));
    }
View Full Code Here

            if (options.getResolveId() == null) {
                options.setResolveId(ResolveOptions.getDefaultResolveId(md));
            }

            eventManager.fireIvyEvent(new StartResolveEvent(md, confs));

            long start = System.currentTimeMillis();
            if (ResolveOptions.LOG_DEFAULT.equals(options.getLog())) {
                Message.info(":: resolving dependencies :: " + md.getResolvedModuleRevisionId()
                        + (options.isTransitive() ? "" : " [not transitive]"));
View Full Code Here

            if (options.getResolveId() == null) {
                options.setResolveId(ResolveOptions.getDefaultResolveId(md));
            }

            eventManager.fireIvyEvent(new StartResolveEvent(md, confs));

            long start = System.currentTimeMillis();
            if (ResolveOptions.LOG_DEFAULT.equals(options.getLog())) {
                Message.info(":: resolving dependencies :: " + md.getResolvedModuleRevisionId()
                        + (options.isTransitive() ? "" : " [not transitive]"));
View Full Code Here

TOP

Related Classes of org.apache.ivy.core.event.resolve.StartResolveEvent

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.