Java Code Examples for org.gradle.api.Task#getGroup()
The following examples show how to use
org.gradle.api.Task#getGroup() .
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: BuildInvocationsBuilder.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private void findTasks(Project project, Collection<String> tasks, Collection<String> visibleTasks) { for (Project child : project.getChildProjects().values()) { findTasks(child, tasks, visibleTasks); } for (Task task : taskLister.listProjectTasks(project)) { tasks.add(task.getName()); if (task.getGroup() != null) { visibleTasks.add(task.getName()); } } }
Example 2
Source File: BuildInvocationsBuilder.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private void findTasks(Project project, Collection<String> tasks, Collection<String> visibleTasks) { for (Project child : project.getChildProjects().values()) { findTasks(child, tasks, visibleTasks); } for (Task task : taskLister.listProjectTasks(project)) { tasks.add(task.getName()); if (task.getGroup() != null) { visibleTasks.add(task.getName()); } } }
Example 3
Source File: MetricsPlugin.java From firebase-android-sdk with Apache License 2.0 | 4 votes |
/** * Determines whether a given gradle {@link Task} is "public", e.g. visible with `gradle tasks`. */ private static boolean isTaskPublic(Task task) { return task.getGroup() != null; }