Examples of rethrowFailure()


Examples of org.gradle.BuildResult.rethrowFailure()

    protected ExecutionResult doRun() {
        OutputListenerImpl outputListener = new OutputListenerImpl();
        OutputListenerImpl errorListener = new OutputListenerImpl();
        BuildListenerImpl buildListener = new BuildListenerImpl();
        BuildResult result = doRun(outputListener, errorListener, buildListener);
        result.rethrowFailure();
        return new InProcessExecutionResult(buildListener.executedTasks, buildListener.skippedTasks,
                outputListener.toString(), errorListener.toString());
    }

    @Override
View Full Code Here

Examples of org.gradle.BuildResult.rethrowFailure()

        OutputListenerImpl outputListener = new OutputListenerImpl();
        OutputListenerImpl errorListener = new OutputListenerImpl();
        BuildListenerImpl buildListener = new BuildListenerImpl();
        BuildResult result = doRun(outputListener, errorListener, buildListener);
        try {
            result.rethrowFailure();
        } catch (Exception e) {
            throw new UnexpectedBuildFailure(e);
        }
        return assertResult(new InProcessExecutionResult(buildListener.executedTasks, buildListener.skippedTasks,
                new OutputScrapingExecutionResult(outputListener.toString(), errorListener.toString())));
View Full Code Here

Examples of org.gradle.api.artifacts.ResolvedConfiguration.rethrowFailure()

        }});

        ResolvedConfiguration resolvedConfig = ivyService.resolve(configuration);

        assertFalse(resolvedConfig.hasError());
        resolvedConfig.rethrowFailure();
        assertThat(resolvedConfig.getFiles(Specs.<Dependency>satisfyAll()), isEmpty());
        assertThat(resolvedConfig.getFirstLevelModuleDependencies(), isEmpty());
        assertThat(resolvedConfig.getResolvedArtifacts(), isEmpty());
    }
View Full Code Here

Examples of org.gradle.process.ExecResult.rethrowFailure()

    }

    protected ExecutionResult waitForStop(boolean expectFailure) {
        ExecHandle execHandle = getExecHandle();
        ExecResult execResult = execHandle.waitForFinish();
        execResult.rethrowFailure(); // nop if all ok

        String output = getStandardOutput();
        String error = getErrorOutput();

        boolean didFail = execResult.getExitValue() != 0;
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.