|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gradle.api.internal.AbstractTask org.gradle.api.DefaultTask org.gradle.api.plugins.buildcomparison.gradle.CompareGradleBuilds
@Incubating public class CompareGradleBuilds extends DefaultTask
Executes two Gradle builds (that can be the same build) with specified versions and compares the outcomes. Please see the “Comparing Builds” chapter of the Gradle User Guide for more information.
Field Summary | |
---|---|
static List |
DEFAULT_TASKS
|
Constructor Summary | |
CompareGradleBuilds(FileResolver fileResolver, ProgressLoggerFactory progressLoggerFactory, Instantiator instantiator)
|
Method Summary | |
---|---|
boolean
|
getIgnoreFailures()
Whether a comparison between non identical builds will fail the task execution. |
File
|
getReportDir()
The directory that will contain the HTML comparison report and any other report files. |
GradleBuildInvocationSpec
|
getSourceBuild()
The specification of how to invoke the source build. |
GradleBuildInvocationSpec
|
getTargetBuild()
The specification of how to invoke the target build. |
void
|
setIgnoreFailures(boolean ignoreFailures)
Sets whether a comparison between non identical builds will fail the task execution. |
void
|
setReportDir(Object reportDir)
Sets the directory that will contain the HTML comparison report and any other report files. |
void
|
sourceBuild(Action config)
Configures the source build. |
void
|
targetBuild(Action config)
Configures the target build. |
Field Detail |
---|
public static final List DEFAULT_TASKS
Constructor Detail |
---|
@Inject public CompareGradleBuilds(FileResolver fileResolver, ProgressLoggerFactory progressLoggerFactory, Instantiator instantiator)
Method Detail |
---|
public boolean getIgnoreFailures()
@OutputDirectory public File getReportDir()
public GradleBuildInvocationSpec getSourceBuild()
public GradleBuildInvocationSpec getTargetBuild()
public void setIgnoreFailures(boolean ignoreFailures)
ignoreFailures
- false to fail the task on non identical builds, true to not fail the task. The default is false.
@SuppressWarnings("UnusedDeclaration") public void setReportDir(Object reportDir)
reportDir
- The directory that will contain the HTML comparison report and any other report files.
@SuppressWarnings("UnusedDeclaration") public void sourceBuild(Action config)
sourceBuild { gradleVersion = "1.1" }
config
- The configuration action.
@SuppressWarnings("UnusedDeclaration") public void targetBuild(Action config)
targetBuild { gradleVersion = "1.1" }
config
- The configuration action.
Gradle API 1.8