Java Code Examples for org.gradle.api.project#PATH_SEPARATOR

The following examples show how to use org.gradle.api.project#PATH_SEPARATOR . 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: TaskExecutionLogger.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
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 2
Source File: TaskExecutionLogger.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
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 3
Source File: TaskExecutionLogger.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
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 4
Source File: TaskExecutionLogger.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
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 5
Source File: Path.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private Path(String[] segments, boolean absolute) {
    this.segments = segments;
    this.absolute = absolute;
    this.prefix = getPath() + Project.PATH_SEPARATOR;
}
 
Example 6
Source File: Path.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private Path(String[] segments, boolean absolute) {
    this.segments = segments;
    this.absolute = absolute;
    this.prefix = getPath() + Project.PATH_SEPARATOR;
}
 
Example 7
Source File: Path.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private Path(String[] segments, boolean absolute) {
    this.segments = segments;
    this.absolute = absolute;
    this.prefix = getPath() + Project.PATH_SEPARATOR;
}
 
Example 8
Source File: Path.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private Path(String[] segments, boolean absolute) {
    this.segments = segments;
    this.absolute = absolute;
    this.prefix = getPath() + Project.PATH_SEPARATOR;
}