org.gradle.api.internal.tasks.TaskExecuter Java Examples

The following examples show how to use org.gradle.api.internal.tasks.TaskExecuter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AtlasBaseTaskManager.java    From atlas with Apache License 2.0 5 votes vote down vote up
protected<V extends TaskExecuter> V getExecuteActionsTaskExecuter(TaskExecuter taskExecuter,Class<V>clazz) {
    if (taskExecuter == null){
        return null;
    }
    while (get(taskExecuter).getClass()!=clazz){

          taskExecuter = get(taskExecuter);
    }
    return (V) get(taskExecuter);

}
 
Example #2
Source File: TaskExecutionServices.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
TaskExecuter createTaskExecuter(TaskArtifactStateRepository repository, ListenerManager listenerManager) {
    return new ExecuteAtMostOnceTaskExecuter(
            new SkipOnlyIfTaskExecuter(
                    new SkipTaskWithNoActionsExecuter(
                            new SkipEmptySourceFilesTaskExecuter(
                                    new ValidatingTaskExecuter(
                                            new SkipUpToDateTaskExecuter(repository,
                                                    new PostExecutionAnalysisTaskExecuter(
                                                            new ExecuteActionsTaskExecuter(
                                                                    listenerManager.getBroadcaster(TaskActionListener.class)
                                                            ))))))));
}
 
Example #3
Source File: TaskExecutionServices.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
TaskExecuter createTaskExecuter(TaskArtifactStateRepository repository, ListenerManager listenerManager) {
    return new ExecuteAtMostOnceTaskExecuter(
            new SkipOnlyIfTaskExecuter(
                    new SkipTaskWithNoActionsExecuter(
                            new SkipEmptySourceFilesTaskExecuter(
                                    new ValidatingTaskExecuter(
                                            new SkipUpToDateTaskExecuter(repository,
                                                    new PostExecutionAnalysisTaskExecuter(
                                                            new ExecuteActionsTaskExecuter(
                                                                    listenerManager.getBroadcaster(TaskActionListener.class)
                                                            ))))))));
}
 
Example #4
Source File: AtlasBaseTaskManager.java    From atlas with Apache License 2.0 5 votes vote down vote up
private TaskExecuter get(TaskExecuter taskExecuter) {
    Object object = ReflectUtils.getField(taskExecuter, "executer");
    if (object == null) {
        object = ReflectUtils.getField(taskExecuter, "delegate");
    }
    if (object == null){
        return taskExecuter;
    }
    return (TaskExecuter) object;
}
 
Example #5
Source File: TaskExecutionServices.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
TaskExecuter createTaskExecuter(TaskArtifactStateRepository repository, ListenerManager listenerManager) {
    return new ExecuteAtMostOnceTaskExecuter(
            new SkipOnlyIfTaskExecuter(
                    new SkipTaskWithNoActionsExecuter(
                            new SkipEmptySourceFilesTaskExecuter(
                                    new ValidatingTaskExecuter(
                                            new SkipUpToDateTaskExecuter(repository,
                                                    new PostExecutionAnalysisTaskExecuter(
                                                            new ExecuteActionsTaskExecuter(
                                                                    listenerManager.getBroadcaster(TaskActionListener.class)
                                                            ))))))));
}
 
Example #6
Source File: TaskExecutionServices.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
TaskExecuter createTaskExecuter(TaskArtifactStateRepository repository, ListenerManager listenerManager) {
    return new ExecuteAtMostOnceTaskExecuter(
            new SkipOnlyIfTaskExecuter(
                    new SkipTaskWithNoActionsExecuter(
                            new SkipEmptySourceFilesTaskExecuter(
                                    new ValidatingTaskExecuter(
                                            new SkipUpToDateTaskExecuter(repository,
                                                    new PostExecutionAnalysisTaskExecuter(
                                                            new ExecuteActionsTaskExecuter(
                                                                    listenerManager.getBroadcaster(TaskActionListener.class)
                                                            ))))))));
}
 
Example #7
Source File: SkipOnlyIfTaskExecuter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SkipOnlyIfTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #8
Source File: SkipOnlyIfTaskExecuter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SkipOnlyIfTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #9
Source File: PostExecutionAnalysisTaskExecuter.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public PostExecutionAnalysisTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #10
Source File: ExecuteAtMostOnceTaskExecuter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ExecuteAtMostOnceTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #11
Source File: SkipEmptySourceFilesTaskExecuter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SkipEmptySourceFilesTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #12
Source File: ValidatingTaskExecuter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ValidatingTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #13
Source File: SkipTaskWithNoActionsExecuter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SkipTaskWithNoActionsExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #14
Source File: PostExecutionAnalysisTaskExecuter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public PostExecutionAnalysisTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #15
Source File: ExecuteAtMostOnceTaskExecuter.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ExecuteAtMostOnceTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #16
Source File: SkipUpToDateTaskExecuter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SkipUpToDateTaskExecuter(TaskArtifactStateRepository repository, TaskExecuter executer) {
    this.executer = executer;
    this.repository = repository;
}
 
Example #17
Source File: SkipUpToDateTaskExecuter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SkipUpToDateTaskExecuter(TaskArtifactStateRepository repository, TaskExecuter executer) {
    this.executer = executer;
    this.repository = repository;
}
 
Example #18
Source File: ExecuteAtMostOnceTaskExecuter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ExecuteAtMostOnceTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #19
Source File: SkipEmptySourceFilesTaskExecuter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SkipEmptySourceFilesTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #20
Source File: ValidatingTaskExecuter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ValidatingTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #21
Source File: SkipTaskWithNoActionsExecuter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SkipTaskWithNoActionsExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #22
Source File: PostExecutionAnalysisTaskExecuter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public PostExecutionAnalysisTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #23
Source File: SkipUpToDateTaskExecuter.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SkipUpToDateTaskExecuter(TaskArtifactStateRepository repository, TaskExecuter executer) {
    this.executer = executer;
    this.repository = repository;
}
 
Example #24
Source File: SkipOnlyIfTaskExecuter.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SkipOnlyIfTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #25
Source File: SkipTaskWithNoActionsExecuter.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SkipTaskWithNoActionsExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #26
Source File: SkipOnlyIfTaskExecuter.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SkipOnlyIfTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #27
Source File: SkipUpToDateTaskExecuter.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SkipUpToDateTaskExecuter(TaskArtifactStateRepository repository, TaskExecuter executer) {
    this.executer = executer;
    this.repository = repository;
}
 
Example #28
Source File: ExecuteAtMostOnceTaskExecuter.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ExecuteAtMostOnceTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #29
Source File: SkipEmptySourceFilesTaskExecuter.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public SkipEmptySourceFilesTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}
 
Example #30
Source File: ValidatingTaskExecuter.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ValidatingTaskExecuter(TaskExecuter executer) {
    this.executer = executer;
}