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


Java Project.getPath方法代碼示例

本文整理匯總了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;
}
 
開發者ID:lxxlxx888,項目名稱:Reer,代碼行數:9,代碼來源:ProjectOutcomesModelBuilder.java

示例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;
}
 
開發者ID:lxxlxx888,項目名稱:Reer,代碼行數:9,代碼來源:HtmlDependencyReporter.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: 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;
}
 
開發者ID:lxxlxx888,項目名稱:Reer,代碼行數:14,代碼來源:GradleBuildBuilder.java

示例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());
}
 
開發者ID:lxxlxx888,項目名稱:Reer,代碼行數:5,代碼來源:DefaultProjectComponentIdentifier.java

示例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());
}
 
開發者ID:lxxlxx888,項目名稱:Reer,代碼行數:5,代碼來源:DefaultProjectComponentSelector.java

示例7: getProjectIdentifier

import org.gradle.api.Project; //導入方法依賴的package包/類
private DefaultProjectIdentifier getProjectIdentifier(Project project) {
    return new DefaultProjectIdentifier(project.getRootDir(), project.getPath());
}
 
開發者ID:lxxlxx888,項目名稱:Reer,代碼行數:4,代碼來源:BuildInvocationsBuilder.java

示例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);
}
 
開發者ID:lxxlxx888,項目名稱:Reer,代碼行數:6,代碼來源:PublicationsBuilder.java


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