Java 类org.gradle.api.tasks.ParallelizableTask 实例源码

项目:Reer    文件:DefaultTaskExecutionPlan.java   
private boolean detectIsParallelizable(TaskInternal task) {
    if (task.getClass().isAnnotationPresent(ParallelizableTask.class)) {
        if (task.isHasCustomActions()) {
            LOGGER.info("Unable to parallelize task {} due to presence of custom actions (e.g. doFirst()/doLast())", task.getPath());
        } else {
            return true;
        }
    }

    return false;
}