Java 类org.gradle.api.internal.tasks.ContextAwareTaskAction 实例源码

项目:Reer    文件:ExecuteActionsTaskExecuter.java   
private void executeAction(TaskInternal task, ContextAwareTaskAction action, TaskExecutionContext context) {
    action.contextualise(context);
    try {
        action.execute(task);
    } finally {
        action.contextualise(null);
    }
}
项目:Reer    文件:AbstractTask.java   
@Override
public Set<ClassLoader> getActionClassLoaders() {
    Set<ClassLoader> actionLoaders = Sets.newLinkedHashSet();
    for (ContextAwareTaskAction action : actions) {
        actionLoaders.add(action.getClassLoader());
    }
    return actionLoaders;
}
项目:Reer    文件:AbstractTask.java   
private Collection<ContextAwareTaskAction> transformToContextAwareTaskActions(Collection<Object> c) {
    return Collections2.transform(c, new Function<Object, ContextAwareTaskAction>() {
        public ContextAwareTaskAction apply(@Nullable Object input) {
            return wrap((Action<? super Task>) input);
        }
    });
}
项目:CodeColors    文件:MergeResourcesConfigurationTask.java   
private void setupTasks(MergeResources mergeResources) {
    List<ContextAwareTaskAction> tasks = mergeResources.getTaskActions();
    List<ContextAwareTaskAction> newTasks = new ArrayList<>(tasks.size());
    for (ContextAwareTaskAction action : tasks) {
        newTasks.add(new IgnoreResFilesTaskActionWrapper(action, mResFiles));
    }
    mergeResources.deleteAllActions();
    mergeResources.getTaskActions().addAll(newTasks);
}
项目:Reer    文件:AbstractTask.java   
public List<ContextAwareTaskAction> getTaskActions() {
    return observableActionList;
}
项目:Reer    文件:AbstractTask.java   
private ContextAwareTaskAction convertClosureToAction(Closure actionClosure) {
    return new ClosureTaskAction(actionClosure);
}
项目:Reer    文件:AbstractTask.java   
private ContextAwareTaskAction wrap(final Action<? super Task> action) {
    if (action instanceof ContextAwareTaskAction) {
        return (ContextAwareTaskAction) action;
    }
    return new TaskActionWrapper(action);
}
项目:Reer    文件:AbstractTask.java   
public void contextualise(TaskExecutionContext context) {
    if (action instanceof ContextAwareTaskAction) {
        ((ContextAwareTaskAction) action).contextualise(context);
    }
}
项目:CodeColors    文件:IgnoreResFilesTaskActionWrapper.java   
public IgnoreResFilesTaskActionWrapper(ContextAwareTaskAction task, Set<File> resFiles) {
    mTask = task;
    mResFiles = resFiles;
}
项目:Reer    文件:TaskInternal.java   
List<ContextAwareTaskAction> getTaskActions();
项目:Pushjet-Android    文件:TaskInternal.java   
List<ContextAwareTaskAction> getTaskActions();
项目:Pushjet-Android    文件:TaskInternal.java   
List<ContextAwareTaskAction> getTaskActions();