當前位置: 首頁>>代碼示例>>Java>>正文


Java Project.getDescription方法代碼示例

本文整理匯總了Java中org.gradle.api.Project.getDescription方法的典型用法代碼示例。如果您正苦於以下問題:Java Project.getDescription方法的具體用法?Java Project.getDescription怎麽用?Java Project.getDescription使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.gradle.api.Project的用法示例。


在下文中一共展示了Project.getDescription方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: addSubProjects

import org.gradle.api.Project; //導入方法依賴的package包/類
/**
 * 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);
    }
}
 
開發者ID:lxxlxx888,項目名稱:Reer,代碼行數:19,代碼來源:ProjectConverter.java

示例2: buildProjectOutput

import org.gradle.api.Project; //導入方法依賴的package包/類
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;
}
 
開發者ID:lxxlxx888,項目名稱:Reer,代碼行數:9,代碼來源:ProjectOutcomesModelBuilder.java

示例3: createHeader

import org.gradle.api.Project; //導入方法依賴的package包/類
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;
}
 
開發者ID:lxxlxx888,項目名稱:Reer,代碼行數:13,代碼來源:TextReportRenderer.java

示例4: deriveProjectDescription

import org.gradle.api.Project; //導入方法依賴的package包/類
private ProjectDescriptor deriveProjectDescription(Project project) {
    ProjectDescriptor projectDescriptor = new ProjectDescriptor(project.getName(), project.getGroup().toString(), project.getDescription(), project.getVersion().toString(), new EnvironmentDescriptor(project.getGradle().getGradleVersion()));
    addPluginDescription(project, projectDescriptor);
    addTasksDescription(project, projectDescriptor);
    addJavaDescription(project, projectDescriptor);
    return projectDescriptor;
}
 
開發者ID:gradle-guides,項目名稱:gradle-site-plugin,代碼行數:8,代碼來源:SitePlugin.java

示例5: addRootLevelProject

import org.gradle.api.Project; //導入方法依賴的package包/類
/**
 * 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();
}
 
開發者ID:lxxlxx888,項目名稱:Reer,代碼行數:17,代碼來源:ProjectConverter.java


注:本文中的org.gradle.api.Project.getDescription方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。