Java Code Examples for org.gradle.api.Project#getDescription()

The following examples show how to use org.gradle.api.Project#getDescription() . 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: TextReportRenderer.java    From javaide with GNU General Public License v3.0 5 votes vote down vote up
protected String createHeader(Project project) {
    String header;
    if (project.getRootProject() == project) {
        header = "Root project";
    } else {
        header = "Project " + project.getPath();
    }
    if (GUtil.isTrue(project.getDescription())) {
        header = header + " - " + project.getDescription();
    }
    return header;
}
 
Example 2
Source File: TextReportRenderer.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
protected String createHeader(Project project) {
    String header;
    if (project.getRootProject() == project) {
        header = "Root project";
    } else {
        header = String.format("Project %s", project.getPath());
    }
    if (GUtil.isTrue(project.getDescription())) {
        header = header + " - " + project.getDescription();
    }
    return header;
}
 
Example 3
Source File: ProjectOutcomesModelBuilder.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private DefaultProjectOutcomes buildProjectOutput(Project project, ProjectOutcomes parent) {
    DefaultProjectOutcomes projectOutput = new DefaultProjectOutcomes(project.getName(), project.getPath(),
            project.getDescription(), project.getProjectDir(), getFileOutcomes(project), parent);
    for (Project child : project.getChildProjects().values()) {
        projectOutput.addChild(buildProjectOutput(child, projectOutput));
    }
    return projectOutput;
}
 
Example 4
Source File: ProjectConverter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Adds all sub projects of the specified GradleProject.
 *
 * @param parentProject the source parent project. Where we get the sub projects from.
 * @param parentProjectView the destination of the sub projects from parentProject.
 */
private void addSubProjects(Project parentProject, ProjectView parentProjectView) {
    Collection<Project> subProjects = parentProject.getChildProjects().values();
    for (Project subProject : subProjects) {
        ProjectView projectView = new ProjectView(parentProjectView, subProject.getName(), subProject.getBuildFile(), subProject.getDescription());
        projectMap.put(subProject, projectView);

        addTasks(subProject, projectView);

        projectView.sortSubProjectsAndTasks();

        addSubProjects(subProject, projectView);
    }
}
 
Example 5
Source File: TextReportRenderer.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
protected String createHeader(Project project) {
    String header;
    if (project.getRootProject() == project) {
        header = "Root project";
    } else {
        header = String.format("Project %s", project.getPath());
    }
    if (GUtil.isTrue(project.getDescription())) {
        header = header + " - " + project.getDescription();
    }
    return header;
}
 
Example 6
Source File: ProjectOutcomesModelBuilder.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private DefaultProjectOutcomes buildProjectOutput(Project project, ProjectOutcomes parent) {
    DefaultProjectOutcomes projectOutput = new DefaultProjectOutcomes(project.getName(), project.getPath(),
            project.getDescription(), project.getProjectDir(), getFileOutcomes(project), parent);
    for (Project child : project.getChildProjects().values()) {
        projectOutput.addChild(buildProjectOutput(child, projectOutput));
    }
    return projectOutput;
}
 
Example 7
Source File: ProjectConverter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Adds all sub projects of the specified GradleProject.
 *
 * @param parentProject the source parent project. Where we get the sub projects from.
 * @param parentProjectView the destination of the sub projects from parentProject.
 */
private void addSubProjects(Project parentProject, ProjectView parentProjectView) {
    Collection<Project> subProjects = parentProject.getChildProjects().values();
    for (Project subProject : subProjects) {
        ProjectView projectView = new ProjectView(parentProjectView, subProject.getName(), subProject.getBuildFile(), subProject.getDescription());

        addTasks(subProject, projectView);

        projectView.sortSubProjectsAndTasks();

        addSubProjects(subProject, projectView);
    }
}
 
Example 8
Source File: TextReportRenderer.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
protected String createHeader(Project project) {
    String header;
    if (project.getRootProject() == project) {
        header = "Root project";
    } else {
        header = String.format("Project %s", project.getPath());
    }
    if (GUtil.isTrue(project.getDescription())) {
        header = header + " - " + project.getDescription();
    }
    return header;
}
 
Example 9
Source File: ProjectOutcomesModelBuilder.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private DefaultProjectOutcomes buildProjectOutput(Project project, ProjectOutcomes parent) {
    DefaultProjectOutcomes projectOutput = new DefaultProjectOutcomes(project.getName(), project.getPath(),
            project.getDescription(), project.getProjectDir(), getFileOutcomes(project), parent);
    for (Project child : project.getChildProjects().values()) {
        projectOutput.addChild(buildProjectOutput(child, projectOutput));
    }
    return projectOutput;
}
 
Example 10
Source File: ProjectConverter.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Adds all sub projects of the specified GradleProject.
 *
 * @param parentProject the source parent project. Where we get the sub projects from.
 * @param parentProjectView the destination of the sub projects from parentProject.
 */
private void addSubProjects(Project parentProject, ProjectView parentProjectView) {
    Collection<Project> subProjects = parentProject.getChildProjects().values();
    for (Project subProject : subProjects) {
        ProjectView projectView = new ProjectView(parentProjectView, subProject.getName(), subProject.getBuildFile(), subProject.getDescription());
        projectMap.put(subProject, projectView);

        addTasks(subProject, projectView);

        projectView.sortSubProjectsAndTasks();

        addSubProjects(subProject, projectView);
    }
}
 
Example 11
Source File: TextReportRenderer.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
protected String createHeader(Project project) {
    String header;
    if (project.getRootProject() == project) {
        header = "Root project";
    } else {
        header = String.format("Project %s", project.getPath());
    }
    if (GUtil.isTrue(project.getDescription())) {
        header = header + " - " + project.getDescription();
    }
    return header;
}
 
Example 12
Source File: ProjectOutcomesModelBuilder.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private DefaultProjectOutcomes buildProjectOutput(Project project, ProjectOutcomes parent) {
    DefaultProjectOutcomes projectOutput = new DefaultProjectOutcomes(project.getName(), project.getPath(),
            project.getDescription(), project.getProjectDir(), getFileOutcomes(project), parent);
    for (Project child : project.getChildProjects().values()) {
        projectOutput.addChild(buildProjectOutput(child, projectOutput));
    }
    return projectOutput;
}
 
Example 13
Source File: ProjectConverter.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Adds all sub projects of the specified GradleProject.
 *
 * @param parentProject the source parent project. Where we get the sub projects from.
 * @param parentProjectView the destination of the sub projects from parentProject.
 */
private void addSubProjects(Project parentProject, ProjectView parentProjectView) {
    Collection<Project> subProjects = parentProject.getChildProjects().values();
    for (Project subProject : subProjects) {
        ProjectView projectView = new ProjectView(parentProjectView, subProject.getName(), subProject.getBuildFile(), subProject.getDescription());

        addTasks(subProject, projectView);

        projectView.sortSubProjectsAndTasks();

        addSubProjects(subProject, projectView);
    }
}
 
Example 14
Source File: ProjectConverter.java    From pushfish-android with BSD 2-Clause "Simplified" License 3 votes vote down vote up
/**
 * This adds the specified project as a root level projects. It then adds all tasks and recursively adds all sub projects.
 *
 * @param rootLevelProject a root level project.
 */
public void addRootLevelProject(Project rootLevelProject) {
    ProjectView rootLevelProjectView = new ProjectView(null, rootLevelProject.getName(), rootLevelProject.getBuildFile(), rootLevelProject.getDescription());

    rootLevelResultingProjects.add(rootLevelProjectView);

    addSubProjects(rootLevelProject, rootLevelProjectView);

    addTasks(rootLevelProject, rootLevelProjectView);

    rootLevelProjectView.sortSubProjectsAndTasks();
}
 
Example 15
Source File: ProjectConverter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 3 votes vote down vote up
/**
 * This adds the specified project as a root level projects. It then adds all tasks and recursively adds all sub projects.
 *
 * @param rootLevelProject a root level project.
 */
public void addRootLevelProject(Project rootLevelProject) {
    ProjectView rootLevelProjectView = new ProjectView(null, rootLevelProject.getName(), rootLevelProject.getBuildFile(), rootLevelProject.getDescription());

    rootLevelResultingProjects.add(rootLevelProjectView);

    addSubProjects(rootLevelProject, rootLevelProjectView);

    addTasks(rootLevelProject, rootLevelProjectView);

    rootLevelProjectView.sortSubProjectsAndTasks();
}
 
Example 16
Source File: ProjectConverter.java    From pushfish-android with BSD 2-Clause "Simplified" License 3 votes vote down vote up
/**
 * This adds the specified poject as a root level projects. It then adds all tasks and recursively adds all sub projects.
 *
 * @param rootLevelProject a root level project.
 */
public void addRootLevelProject(Project rootLevelProject) {
    ProjectView rootLevelProjectView = new ProjectView(null, rootLevelProject.getName(), rootLevelProject.getBuildFile(), rootLevelProject.getDescription());
    projectMap.put(rootLevelProject, rootLevelProjectView);

    rootLevelResultingProjects.add(rootLevelProjectView);

    addSubProjects(rootLevelProject, rootLevelProjectView);

    addTasks(rootLevelProject, rootLevelProjectView);

    rootLevelProjectView.sortSubProjectsAndTasks();
}
 
Example 17
Source File: ProjectConverter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 3 votes vote down vote up
/**
 * This adds the specified poject as a root level projects. It then adds all tasks and recursively adds all sub projects.
 *
 * @param rootLevelProject a root level project.
 */
public void addRootLevelProject(Project rootLevelProject) {
    ProjectView rootLevelProjectView = new ProjectView(null, rootLevelProject.getName(), rootLevelProject.getBuildFile(), rootLevelProject.getDescription());
    projectMap.put(rootLevelProject, rootLevelProjectView);

    rootLevelResultingProjects.add(rootLevelProjectView);

    addSubProjects(rootLevelProject, rootLevelProjectView);

    addTasks(rootLevelProject, rootLevelProjectView);

    rootLevelProjectView.sortSubProjectsAndTasks();
}