Package org.netbeans.gradle.project.api.task

Examples of org.netbeans.gradle.project.api.task.SingleExecutionOutputProcessor


    private static SingleExecutionOutputProcessor outputProcessor(
            final TaskOutputProcessor processor,
            SingleExecutionOutputProcessor processorFactory) {

        final SingleExecutionOutputProcessor nullSafeProcessorFactory = processorFactory != null
                ? processorFactory
                : NoOpSingleExecutionOutputProcessor.INSTANCE;

        if (processor == null) {
            return nullSafeProcessorFactory;
        }

        return new SingleExecutionOutputProcessor() {
            @Override
            public TaskOutputProcessor startExecution(Project project) {
                return mergedOutputProcessor(
                        processor,
                        nullSafeProcessorFactory.startExecution(project));
            }
        };
    }
View Full Code Here


            final JavaExtension javaExt,
            CustomCommandActions.Builder customActions) {
        final CancellationSource cancel = Cancellation.createCancellationSource();
        customActions.setCancelToken(cancel.getToken());

        return new SingleExecutionOutputProcessor() {
            @Override
            public TaskOutputProcessor startExecution(Project project) {
                return new DebugTextListener(new AttacherListener(javaExt, cancel.getController()));
            }
        };
View Full Code Here

TOP

Related Classes of org.netbeans.gradle.project.api.task.SingleExecutionOutputProcessor

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.