org.gradle.api.tasks.TaskInputs Java Examples

The following examples show how to use org.gradle.api.tasks.TaskInputs. 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: DefaultTaskInputs.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs files(final Object... paths) {
    taskMutator.mutate("TaskInputs.files(Object...)", new Runnable() {
        public void run() {
            inputFiles.from(paths);
        }
    });
    return this;
}
 
Example #2
Source File: DefaultTaskInputs.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs source(final Object path) {
    taskMutator.mutate("TaskInputs.source(Object)", new Runnable() {
        public void run() {
            sourceFiles.from(path);
        }
    });
    return this;
}
 
Example #3
Source File: DefaultTaskInputs.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs source(final Object... paths) {
    taskMutator.mutate("TaskInputs.source(Object...)", new Runnable() {
        public void run() {
            sourceFiles.from(paths);
        }
    });
    return this;
}
 
Example #4
Source File: DefaultTaskInputs.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs dir(final Object dirPath) {
    taskMutator.mutate("TaskInputs.dir(Object)", new Runnable() {
        public void run() {
            inputFiles.from(resolver.resolveFilesAsTree(dirPath));
        }
    });
    return this;
}
 
Example #5
Source File: DefaultTaskInputs.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs file(final Object path) {
    taskMutator.mutate("TaskInputs.file(Object)", new Runnable() {
        public void run() {
            inputFiles.from(path);
        }
    });
    return this;
}
 
Example #6
Source File: DefaultTaskInputs.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs files(final Object... paths) {
    taskMutator.mutate("TaskInputs.files(Object...)", new Runnable() {
        public void run() {
            inputFiles.from(paths);
        }
    });
    return this;
}
 
Example #7
Source File: DefaultTaskInputs.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs sourceDir(final Object path) {
    taskMutator.mutate("TaskInputs.sourceDir(Object)", new Runnable() {
        public void run() {
            sourceFiles.from(resolver.resolveFilesAsTree(path));
        }
    });
    return this;
}
 
Example #8
Source File: DefaultTaskInputs.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs property(final String name, final Object value) {
    taskMutator.mutate("TaskInputs.property(String, Object)", new Runnable() {
        public void run() {
            properties.put(name, value);
        }
    });
    return this;
}
 
Example #9
Source File: DefaultTaskInputs.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs properties(final Map<String, ?> newProps) {
    taskMutator.mutate("TaskInputs.properties(Map)", new Runnable() {
        public void run() {
            properties.putAll(newProps);
        }
    });
    return this;
}
 
Example #10
Source File: DefaultTaskInputs.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs file(final Object path) {
    taskMutator.mutate("TaskInputs.file(Object)", new Runnable() {
        public void run() {
            inputFiles.from(path);
        }
    });
    return this;
}
 
Example #11
Source File: DefaultTaskInputs.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs dir(final Object dirPath) {
    taskMutator.mutate("TaskInputs.dir(Object)", new Runnable() {
        public void run() {
            inputFiles.from(resolver.resolveFilesAsTree(dirPath));
        }
    });
    return this;
}
 
Example #12
Source File: DefaultTaskInputs.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs source(final Object... paths) {
    taskMutator.mutate("TaskInputs.source(Object...)", new Runnable() {
        public void run() {
            sourceFiles.from(paths);
        }
    });
    return this;
}
 
Example #13
Source File: DefaultTaskInputs.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs source(final Object path) {
    taskMutator.mutate("TaskInputs.source(Object)", new Runnable() {
        public void run() {
            sourceFiles.from(path);
        }
    });
    return this;
}
 
Example #14
Source File: DefaultTaskInputs.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs sourceDir(final Object path) {
    taskMutator.mutate("TaskInputs.sourceDir(Object)", new Runnable() {
        public void run() {
            sourceFiles.from(resolver.resolveFilesAsTree(path));
        }
    });
    return this;
}
 
Example #15
Source File: DefaultTaskInputs.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs property(final String name, final Object value) {
    taskMutator.mutate("TaskInputs.property(String, Object)", new Runnable() {
        public void run() {
            properties.put(name, value);
        }
    });
    return this;
}
 
Example #16
Source File: DefaultTaskInputs.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public TaskInputs properties(final Map<String, ?> newProps) {
    taskMutator.mutate("TaskInputs.properties(Map)", new Runnable() {
        public void run() {
            properties.putAll(newProps);
        }
    });
    return this;
}
 
Example #17
Source File: AbstractTask.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Inject
public TaskInputs getInputs() {
    // Decoration takes care of the implementation
    throw new UnsupportedOperationException();
}
 
Example #18
Source File: TaskScopeServices.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
protected TaskInputs createTaskInputs() {
    return new DefaultTaskInputs(project.getFileResolver(), taskInternal, get(TaskStatusNagger.class));
}
 
Example #19
Source File: AbstractTask.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public TaskInputs getInputs() {
    return inputs;
}
 
Example #20
Source File: TaskScopeServices.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
protected TaskInputs createTaskInputs() {
    return new DefaultTaskInputs(project.getFileResolver(), taskInternal, get(TaskMutator.class));
}
 
Example #21
Source File: DefaultTaskInputs.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public TaskInputs files(Object... paths) {
    taskStatusNagger.nagIfTaskNotInConfigurableState("TaskInputs.files(Object...)");
    inputFiles.from(paths);
    return this;
}
 
Example #22
Source File: DefaultTaskInputs.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public TaskInputs file(Object path) {
    taskStatusNagger.nagIfTaskNotInConfigurableState("TaskInputs.file(Object)");
    files(path);
    return this;
}
 
Example #23
Source File: DefaultTaskInputs.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public TaskInputs dir(Object dirPath) {
    taskStatusNagger.nagIfTaskNotInConfigurableState("TaskInputs.dir(Object)");
    inputFiles.from(resolver.resolveFilesAsTree(dirPath));
    return this;
}
 
Example #24
Source File: DefaultTaskInputs.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public TaskInputs source(Object... paths) {
    taskStatusNagger.nagIfTaskNotInConfigurableState("TaskInputs.source(Object...)");
    sourceFiles.from(paths);
    return this;
}
 
Example #25
Source File: DefaultTaskInputs.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public TaskInputs source(Object path) {
    taskStatusNagger.nagIfTaskNotInConfigurableState("TaskInputs.source(Object)");
    sourceFiles.from(path);
    return this;
}
 
Example #26
Source File: DefaultTaskInputs.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public TaskInputs sourceDir(Object path) {
    taskStatusNagger.nagIfTaskNotInConfigurableState("TaskInputs.sourceDir(Object)");
    sourceFiles.from(resolver.resolveFilesAsTree(path));
    return this;
}
 
Example #27
Source File: DefaultTaskInputs.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public TaskInputs property(String name, Object value) {
    taskStatusNagger.nagIfTaskNotInConfigurableState("TaskInputs.property(String, Object)");
    properties.put(name, value);
    return this;
}
 
Example #28
Source File: TaskScopeServices.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
protected TaskInputs createTaskInputs() {
    return new DefaultTaskInputs(project.getFileResolver(), taskInternal, get(TaskStatusNagger.class));
}
 
Example #29
Source File: AbstractTask.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public TaskInputs getInputs() {
    return inputs;
}
 
Example #30
Source File: DefaultTaskInputs.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public TaskInputs property(String name, Object value) {
    taskStatusNagger.nagIfTaskNotInConfigurableState("TaskInputs.property(String, Object)");
    properties.put(name, value);
    return this;
}