本文整理匯總了Java中org.gradle.api.Project.getPath方法的典型用法代碼示例。如果您正苦於以下問題:Java Project.getPath方法的具體用法?Java Project.getPath怎麽用?Java Project.getPath使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.gradle.api.Project
的用法示例。
在下文中一共展示了Project.getPath方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: 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;
}
示例2: toFileName
import org.gradle.api.Project; //導入方法依賴的package包/類
private String toFileName(Project project, String extension) {
String name = project.getPath();
if (name.equals(":")) {
return "root" + extension;
}
return "root" + name.replace(":", ".") + extension;
}
示例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: convert
import org.gradle.api.Project; //導入方法依賴的package包/類
private BasicGradleProject convert(Project project, Map<Project, BasicGradleProject> convertedProjects) {
DefaultProjectIdentifier id = new DefaultProjectIdentifier(project.getRootDir(), project.getPath());
BasicGradleProject converted = new BasicGradleProject().setName(project.getName()).setProjectIdentifier(id);
converted.setProjectDirectory(project.getProjectDir());
if (project.getParent() != null) {
converted.setParent(convertedProjects.get(project.getParent()));
}
convertedProjects.put(project, converted);
for (Project child : project.getChildProjects().values()) {
converted.addChild(convert(child, convertedProjects));
}
return converted;
}
示例5: newProjectId
import org.gradle.api.Project; //導入方法依賴的package包/類
public static ProjectComponentIdentifier newProjectId(Project project) {
BuildIdentifier buildId = ((ProjectInternal) project).getServices().get(BuildIdentity.class).getCurrentBuild();
return new DefaultProjectComponentIdentifier(buildId, project.getPath());
}
示例6: newSelector
import org.gradle.api.Project; //導入方法依賴的package包/類
public static ProjectComponentSelector newSelector(Project project) {
BuildIdentifier buildId = ((ProjectInternal) project).getServices().get(BuildIdentity.class).getCurrentBuild();
return new DefaultProjectComponentSelector(buildId.getName(), project.getPath());
}
示例7: getProjectIdentifier
import org.gradle.api.Project; //導入方法依賴的package包/類
private DefaultProjectIdentifier getProjectIdentifier(Project project) {
return new DefaultProjectIdentifier(project.getRootDir(), project.getPath());
}
示例8: buildAll
import org.gradle.api.Project; //導入方法依賴的package包/類
@Override
public Object buildAll(String modelName, Project project) {
DefaultProjectIdentifier projectIdentifier = new DefaultProjectIdentifier(project.getRootDir(), project.getPath());
return new DefaultProjectPublications().setPublications(publications(projectIdentifier)).setProjectIdentifier(projectIdentifier);
}