Java Code Examples for org.gradle.api.Task#getPath()
The following examples show how to use
org.gradle.api.Task#getPath() .
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: TaskDetailsFactory.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
public TaskDetails create(final Task task) { final String path; Project project = task.getProject(); if (projects.contains(project)) { path = this.project.relativeProjectPath(task.getPath()); } else { path = task.getPath(); } return new TaskDetails() { public Path getPath() { return Path.path(path); } public String getDescription() { return task.getDescription(); } public Set<TaskDetails> getDependencies() { return Collections.emptySet(); } public Set<TaskDetails> getChildren() { return Collections.emptySet(); } }; }
Example 2
Source File: TaskDetailsFactory.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
public TaskDetails create(final Task task) { final String path; Project project = task.getProject(); if (projects.contains(project)) { path = this.project.relativeProjectPath(task.getPath()); } else { path = task.getPath(); } return new TaskDetails() { public Path getPath() { return Path.path(path); } public String getDescription() { return task.getDescription(); } public Set<TaskDetails> getDependencies() { return Collections.emptySet(); } public Set<TaskDetails> getChildren() { return Collections.emptySet(); } }; }
Example 3
Source File: TaskDetailsFactory.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
public TaskDetails create(final Task task) { final String path; Project project = task.getProject(); if (projects.contains(project)) { path = this.project.relativeProjectPath(task.getPath()); } else { path = task.getPath(); } return new TaskDetails() { public Path getPath() { return Path.path(path); } public String getDescription() { return task.getDescription(); } public Set<TaskDetails> getDependencies() { return Collections.emptySet(); } public Set<TaskDetails> getChildren() { return Collections.emptySet(); } }; }
Example 4
Source File: TaskDetailsFactory.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
public TaskDetails create(final Task task) { final String path; Project project = task.getProject(); if (projects.contains(project)) { path = this.project.relativeProjectPath(task.getPath()); } else { path = task.getPath(); } return new TaskDetails() { public Path getPath() { return Path.path(path); } public String getDescription() { return task.getDescription(); } public Set<TaskDetails> getDependencies() { return Collections.emptySet(); } public Set<TaskDetails> getChildren() { return Collections.emptySet(); } }; }
Example 5
Source File: TaskExecutionLogger.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private String getDisplayName(Task task) { Gradle build = task.getProject().getGradle(); if (build.getParent() == null) { // The main build, use the task path return task.getPath(); } // A nested build, use a discriminator return Project.PATH_SEPARATOR + build.getRootProject().getName() + task.getPath(); }
Example 6
Source File: TaskExecutionLogger.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private String getDisplayName(Task task) { Gradle build = task.getProject().getGradle(); if (build.getParent() == null) { // The main build, use the task path return task.getPath(); } // A nested build, use a discriminator return Project.PATH_SEPARATOR + build.getRootProject().getName() + task.getPath(); }
Example 7
Source File: TaskExecutionLogger.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private String getDisplayName(Task task) { Gradle build = task.getProject().getGradle(); if (build.getParent() == null) { // The main build, use the task path return task.getPath(); } // A nested build, use a discriminator return Project.PATH_SEPARATOR + build.getRootProject().getName() + task.getPath(); }
Example 8
Source File: TaskExecutionLogger.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private String getDisplayName(Task task) { Gradle build = task.getProject().getGradle(); if (build.getParent() == null) { // The main build, use the task path return task.getPath(); } // A nested build, use a discriminator return Project.PATH_SEPARATOR + build.getRootProject().getName() + task.getPath(); }
Example 9
Source File: InProcessGradleExecuter.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
private String path(Task task) { return task.getProject().getGradle().getParent() == null ? task.getPath() : ":" + task.getProject().getRootProject().getName() + task.getPath(); }
Example 10
Source File: InProcessGradleExecuter.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
private String path(Task task) { return task.getProject().getGradle().getParent() == null ? task.getPath() : ":" + task.getProject().getRootProject().getName() + task.getPath(); }
Example 11
Source File: InProcessGradleExecuter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
private String path(Task task) { return task.getProject().getGradle().getParent() == null ? task.getPath() : ":" + task.getProject().getRootProject().getName() + task.getPath(); }
Example 12
Source File: InProcessGradleExecuter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
private String path(Task task) { return task.getProject().getGradle().getParent() == null ? task.getPath() : ":" + task.getProject().getRootProject().getName() + task.getPath(); }