Package org.gradle

Examples of org.gradle.GradleLauncher


    // todo: This test is rather weak. Make it stronger.
    @Test
    public void testNewInstanceFactory() {
        StartParameter startParameter = new StartParameter();
        GradleLauncher gradleLauncher = GradleLauncher.newInstance(startParameter);
        assertThat(gradleLauncher, notNullValue());
    }
View Full Code Here


                              BuildListenerImpl listener) {
        assertCanExecute();
        if (isQuiet()) {
            parameter.setLogLevel(LogLevel.QUIET);
        }
        GradleLauncher gradleLauncher = GradleLauncher.newInstance(parameter);
        gradleLauncher.addListener(listener);
        gradleLauncher.addStandardOutputListener(outputListener);
        gradleLauncher.addStandardErrorListener(errorListener);
        try {
            return gradleLauncher.run();
        } finally {
            System.clearProperty("test.single");
        }
    }
View Full Code Here

        this.requestMetaData = requestMetaData;
    }

    public void execute(ExecutionListener executionListener) {
        GradleLauncherFactory gradleLauncherFactory = createGradleLauncherFactory(loggingServices);
        GradleLauncher gradleLauncher = gradleLauncherFactory.newInstance(startParameter, requestMetaData);
        BuildResult buildResult = gradleLauncher.run();
        Throwable failure = buildResult.getFailure();
        if (failure != null) {
            executionListener.onFailure(failure);
        }
    }
View Full Code Here

TOP

Related Classes of org.gradle.GradleLauncher

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.