@Incubating public class CompareGradleBuilds extends DefaultTask implements VerificationTask
Task.Namer
Modifier and Type | Field and Description |
---|---|
static List<String> |
DEFAULT_TASKS |
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
CompareGradleBuilds() |
Modifier and Type | Method and Description |
---|---|
protected org.gradle.internal.file.PathToFileResolver |
getFileResolver() |
boolean |
getIgnoreFailures()
Whether a comparison between non identical builds will fail the task execution.
|
protected org.gradle.internal.reflect.Instantiator |
getInstantiator() |
protected org.gradle.internal.logging.progress.ProgressLoggerFactory |
getProgressLoggerFactory() |
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.
|
addValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toString
@Inject protected org.gradle.internal.file.PathToFileResolver getFileResolver()
@Inject protected org.gradle.internal.logging.progress.ProgressLoggerFactory getProgressLoggerFactory()
@Inject protected org.gradle.internal.reflect.Instantiator getInstantiator()
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 VerificationTask
public void setIgnoreFailures(boolean ignoreFailures)
setIgnoreFailures
in interface VerificationTask
ignoreFailures
- 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.