Examples of GroovyExecuteTask


Examples of org.sonatype.maven.polyglot.groovy.execute.GroovyExecuteTask

    public boolean isHandlesNodeChildren() {
        return true;
    }

    public Object newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attrs) throws InstantiationException, IllegalAccessException {
        return new GroovyExecuteTask(value, attrs);
    }
View Full Code Here

Examples of org.sonatype.maven.polyglot.groovy.execute.GroovyExecuteTask

    }

    @Override
    public void setParent(FactoryBuilderSupport builder, Object parent, Object child) {
        if (parent instanceof Build) {
            GroovyExecuteTask task = (GroovyExecuteTask) child;
            List<ExecuteTask> tasks = ((ModelBuilder) builder).getTasks();
            tasks.add(task);
        }
        else {
            throw new IllegalStateException("The " + getName() + " element must only be defined under 'build'");
View Full Code Here

Examples of org.sonatype.maven.polyglot.groovy.execute.GroovyExecuteTask

        }
    }

    @Override
    public boolean onNodeChildren(FactoryBuilderSupport builder, Object node, Closure content) {
        GroovyExecuteTask task = (GroovyExecuteTask) node;
        task.setClosure(content);
        return false;
    }
View Full Code Here

Examples of org.sonatype.maven.polyglot.groovy.execute.GroovyExecuteTask

        return false;
    }

    @Override
    public void onNodeCompleted(FactoryBuilderSupport builder, Object parent, Object node) {
        GroovyExecuteTask task = (GroovyExecuteTask) node;
        if (task.getId() == null) {
            throw new IllegalStateException("Execute task is missing attribute 'id'");
        }
        if (task.getPhase() == null) {
            throw new IllegalStateException("Execute task is missing attribute 'phase'");
        }
    }
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.