Package org.gradle.tooling.internal.consumer

Examples of org.gradle.tooling.internal.consumer.DefaultCancellationTokenSource.token()


    private void runBuild(CancellationToken cancelToken, BuildLauncher buildLauncher) {
        // It is not possible to implement org.gradle.tooling.CancellationToken
        // Attempting to do so will cause Gradle to throw a class cast exception
        // somewhere.
        final DefaultCancellationTokenSource cancelSource = new DefaultCancellationTokenSource();
        buildLauncher.withCancellationToken(cancelSource.token());

        ListenerRef cancelListenerRef = cancelToken.addCancellationListener(new Runnable() {
            @Override
            public void run() {
                scheduleCancel(cancelSource);
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.