本文整理匯總了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);
}
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}