Package org.gradle.logging.internal.progress

Examples of org.gradle.logging.internal.progress.ProgressOperation


    public void onOutput(OutputEvent event) {
        try {
            if (event instanceof ProgressStartEvent) {
                ProgressStartEvent startEvent = (ProgressStartEvent) event;
                ProgressOperation op = operations.start(startEvent.getShortDescription(), startEvent.getStatus(), startEvent.getOperationId(), startEvent.getParentOperationId());
                updateText(op);
            } else if (event instanceof ProgressCompleteEvent) {
                ProgressOperation op = operations.complete(((ProgressCompleteEvent) event).getOperationId());
                updateText(op.getParent());
            } else if (event instanceof ProgressEvent) {
                ProgressEvent progressEvent = (ProgressEvent) event;
                ProgressOperation op = operations.progress(progressEvent.getStatus(), progressEvent.getOperationId());
                updateText(op);
            }
            listener.onOutput(event);
        } catch (Exception e) {
            throw new RuntimeException("Unable to process incoming event '" + event
View Full Code Here


        this.consoleMetaData = consoleMetaData;
    }

    public String format(ProgressOperation op) {
        StringBuilder builder = new StringBuilder();
        ProgressOperation current = op;
        while(current != null) {
            String message = current.getMessage();
            current = current.getParent();

            if (message == null) {
                continue;
            }
View Full Code Here

TOP

Related Classes of org.gradle.logging.internal.progress.ProgressOperation

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.