Java Code Examples for org.gradle.api.Project#getBuildFile()
The following examples show how to use
org.gradle.api.Project#getBuildFile() .
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: ProjectConverter.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
/** * 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 2
Source File: ProjectConverter.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
/** * 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 3
Source File: ProjectConverter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
/** * 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 4
Source File: ProjectConverter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
/** * 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: ProjectConverter.java From pushfish-android with BSD 2-Clause "Simplified" License | 3 votes |
/** * 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 6
Source File: ProjectConverter.java From pushfish-android with BSD 2-Clause "Simplified" License | 3 votes |
/** * 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 7
Source File: ProjectConverter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 3 votes |
/** * 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 8
Source File: ProjectConverter.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 3 votes |
/** * 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(); }