public class ProjectDescription
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ProjectDescription.Type
Describes different types of lint test projects
|
Constructor and Description |
---|
ProjectDescription()
Creates a new project description
|
ProjectDescription(TestFile... files)
Creates a new project with the given set of files
|
Modifier and Type | Method and Description |
---|---|
ProjectDescription |
dependsOn(ProjectDescription library)
Adds the given project description as a direct dependency for this project
|
ProjectDescription |
files(TestFile... files)
Sets the given set of test files as the project contents
|
ProjectDescription |
name(java.lang.String name)
Names the project; most useful in multi-project tests where the project name
will be part of the error output
|
ProjectDescription |
report(boolean report)
Marks this project as reportable (the default) or non-reportable.
|
ProjectDescription |
type(ProjectDescription.Type type)
Marks the project as an app, library or Java module
|
public ProjectDescription()
public ProjectDescription(@NonNull TestFile... files)
public ProjectDescription name(@NonNull java.lang.String name)
name
- the name for the projectpublic ProjectDescription files(@NonNull TestFile... files)
files
- the test filespublic ProjectDescription dependsOn(@NonNull ProjectDescription library)
library
- the project to depend onpublic ProjectDescription type(@NonNull ProjectDescription.Type type)
type
- the type of project to createpublic ProjectDescription report(boolean report)
report
- whether we should report issues for this project