Package org.sonatype.maven.polyglot.execute

Examples of org.sonatype.maven.polyglot.execute.ExecuteManager


* This is a slightly modified version as shipped with polyglot Maven.
*/
public class CustomModelBuilder extends ModelBuilder {

    public CustomModelBuilder(Model model) {
        ExecuteManager executeManager = new ExecuteManagerImpl();
        setProp(executeManager.getClass(), executeManager, "log",
                new PlexusLoggerAdapter(LoggerFactory.getLogger(ExecuteManagerImpl.class)));
        setProp(ModelBuilder.class, this, "executeManager", executeManager);
        setProp(ModelBuilder.class, this, "log",
                new PlexusLoggerAdapter(LoggerFactory.getLogger(ModelBuilder.class)));
        try {
View Full Code Here


    }

    @Override
    public void onNodeCompleted(FactoryBuilderSupport builder, Object parent, Object node) {
        Model model = (Model)node;
        ExecuteManager manager = ((ModelBuilder)builder).getExecuteManager();
        List<ExecuteTask> tasks = ((ModelBuilder) builder).getTasks();
        manager.register(model, tasks);
       
        // Reset the tasks list for sanity
        tasks.clear();
    }
View Full Code Here

TOP

Related Classes of org.sonatype.maven.polyglot.execute.ExecuteManager

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.