|
|||||||||
| PREV CLASS NEXT CLASS | 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:
ProjectBuilder instance by calling builder().build() to create the Project instance.You can reuse a builder to create multiple Project instances.
| Constructor Summary | |
|---|---|
ProjectBuilder()
|
|
| Method Summary | |
|---|---|
Project |
build()
Creates the project. |
static ProjectBuilder |
builder()
Creates a project builder. |
ProjectBuilder |
withProjectDir(File dir)
Specifies the project directory for the project to build. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectBuilder()
| Method Detail |
|---|
public static ProjectBuilder builder()
public ProjectBuilder withProjectDir(File dir)
dir - The project directory
public Project build()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||