Package org.gradle.initialization

Examples of org.gradle.initialization.GradleLauncher


        // If we were not the most recent version of Gradle to build the buildSrc dir, then do a clean build
        // Otherwise, just to a regular build
        final PersistentCache buildSrcCache = createCache(startParameter);
        try {
            GradleLauncher gradleLauncher = buildGradleLauncher(startParameter);
            try {
                return buildSrcCache.useCache("rebuild buildSrc", new BuildSrcUpdateFactory(buildSrcCache, gradleLauncher, new BuildSrcBuildListenerFactory()));
            } finally {
                gradleLauncher.stop();
            }
        } finally {
            // This isn't quite right. We should not unlock the classes until we're finished with them, and the classes may be used across multiple builds
            buildSrcCache.close();
        }
View Full Code Here


        getStartParameter().setTaskNames(tasks);
    }

    @TaskAction
    void build() {
        GradleLauncher launcher = gradleLauncherFactory.newInstance(getStartParameter(), cancellationToken);
        try {
            launcher.run().rethrowFailure();
        } finally {
            launcher.stop();
        }
    }
View Full Code Here

TOP

Related Classes of org.gradle.initialization.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.