|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.gradle.testfixtures.ProjectBuilder
public class ProjectBuilder
Creates dummy instances of Project which you can use in testing custom task and plugin implementations.
To create a project instance:
You can reuse a builder to create multiple Project instances.
| Method Summary | |
|---|---|
Project
|
build()
Creates the project. |
static ProjectBuilder
|
builder()
Creates a project builder. |
ProjectBuilder
|
withName(String name)
Specifies the name for the project |
ProjectBuilder
|
withParent(Project parent)
Specifies the parent project. |
ProjectBuilder
|
withProjectDir(File dir)
Specifies the project directory for the project to build. |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Method Detail |
|---|
public Project build()
public static ProjectBuilder builder()
public ProjectBuilder withName(String name)
name - project name
public ProjectBuilder withParent(Project parent)
parent - parent project
public ProjectBuilder withProjectDir(File dir)
dir - The project directory
Gradle API 1.5