org.gradle.api.internal.project.DefaultProject Java Examples
The following examples show how to use
org.gradle.api.internal.project.DefaultProject.
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: ProjectBuilderImpl.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
public Project createChildProject(String name, Project parent, File projectDir) { ProjectInternal parentProject = (ProjectInternal) parent; DefaultProject project = CLASS_GENERATOR.newInstance( DefaultProject.class, name, parentProject, (projectDir != null) ? projectDir.getAbsoluteFile() : new File(parentProject.getProjectDir(), name), new StringScriptSource("test build file", null), parentProject.getGradle(), parentProject.getGradle().getServiceRegistryFactory(), parentProject.getClassLoaderScope().createChild(), parentProject.getBaseClassLoaderScope() ); parentProject.addChildProject(project); parentProject.getProjectRegistry().addProject(project); return project; }
Example #2
Source File: ProjectBuilderImpl.java From pushfish-android with BSD 2-Clause "Simplified" License | 6 votes |
public Project createChildProject(String name, Project parent, File projectDir) { ProjectInternal parentProject = (ProjectInternal) parent; DefaultProject project = CLASS_GENERATOR.newInstance( DefaultProject.class, name, parentProject, (projectDir != null) ? projectDir.getAbsoluteFile() : new File(parentProject.getProjectDir(), name), new StringScriptSource("test build file", null), parentProject.getGradle(), parentProject.getGradle().getServiceRegistryFactory(), parentProject.getClassLoaderScope().createChild() ); parentProject.addChildProject(project); parentProject.getProjectRegistry().addProject(project); return project; }
Example #3
Source File: ProjectBuilderImpl.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
public Project createChildProject(String name, Project parent, File projectDir) { ProjectInternal parentProject = (ProjectInternal) parent; DefaultProject project = CLASS_GENERATOR.newInstance( DefaultProject.class, name, parentProject, (projectDir != null) ? projectDir.getAbsoluteFile() : new File(parentProject.getProjectDir(), name), new StringScriptSource("test build file", null), parentProject.getGradle(), parentProject.getGradle().getServiceRegistryFactory(), parentProject.getClassLoaderScope().createChild(), parentProject.getBaseClassLoaderScope() ); parentProject.addChildProject(project); parentProject.getProjectRegistry().addProject(project); return project; }
Example #4
Source File: ProjectBuilderImpl.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 6 votes |
public Project createChildProject(String name, Project parent, File projectDir) { ProjectInternal parentProject = (ProjectInternal) parent; DefaultProject project = CLASS_GENERATOR.newInstance( DefaultProject.class, name, parentProject, (projectDir != null) ? projectDir.getAbsoluteFile() : new File(parentProject.getProjectDir(), name), new StringScriptSource("test build file", null), parentProject.getGradle(), parentProject.getGradle().getServiceRegistryFactory(), parentProject.getClassLoaderScope().createChild() ); parentProject.addChildProject(project); parentProject.getProjectRegistry().addProject(project); return project; }