|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.plugins.buildcomparison.gradle.CompareGradleBuilds
@Incubating public class CompareGradleBuilds
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.gradle.api.Task |
|---|
Task.Namer |
| Field Summary | |
|---|---|
static List<String> |
DEFAULT_TASKS
|
| Fields inherited from interface org.gradle.api.Task |
|---|
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE |
| Constructor Summary | |
|---|---|
CompareGradleBuilds(org.gradle.api.internal.file.FileResolver fileResolver,
org.gradle.logging.ProgressLoggerFactory progressLoggerFactory,
org.gradle.internal.reflect.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<GradleBuildInvocationSpec> config)
Configures the source build. |
void |
targetBuild(Action<GradleBuildInvocationSpec> config)
Configures the target build. |
| Methods inherited from class org.gradle.api.internal.AbstractTask |
|---|
addValidator, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getGroup, getInputs, getLogger, getLogging, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getStandardOutputCapture, getState, getStateInternal, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setGroup, setName, setOnlyIf, setOnlyIf, setProject, setProperty, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final List<String> DEFAULT_TASKS
| Constructor Detail |
|---|
@Inject
public CompareGradleBuilds(org.gradle.api.internal.file.FileResolver fileResolver,
org.gradle.logging.ProgressLoggerFactory progressLoggerFactory,
org.gradle.internal.reflect.Instantiator instantiator)
| Method Detail |
|---|
public GradleBuildInvocationSpec getSourceBuild()
project.rootDir with the current Gradle version
and the tasks “clean assemble”.
The projectDir must be the project directory of the root project if this is a multi project build.
public void sourceBuild(Action<GradleBuildInvocationSpec> config)
sourceBuild {
gradleVersion = "1.1"
}
config - The configuration action.public GradleBuildInvocationSpec getTargetBuild()
project.rootDir with the current Gradle version
and the tasks “clean assemble”.
The projectDir must be the project directory of the root project if this is a multi project build.
public void targetBuild(Action<GradleBuildInvocationSpec> config)
targetBuild {
gradleVersion = "1.1"
}
config - The configuration action.public boolean getIgnoreFailures()
getIgnoreFailures in interface VerificationTaskpublic void setIgnoreFailures(boolean ignoreFailures)
setIgnoreFailures in interface VerificationTaskignoreFailures - false to fail the task on non identical builds, true to not fail the task. The default is false.@OutputDirectory public File getReportDir()
public void setReportDir(Object reportDir)
project.file().
reportDir - The directory that will contain the HTML comparison report and any other report files.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||