Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, ExtensionAware, Task, VerificationTask, org.gradle.util.Configurable<Task>public class CompareGradleBuilds extends DefaultTask implements VerificationTask
Task.Namer| Modifier and Type | Field | Description |
|---|---|---|
static List<String> |
DEFAULT_TASKS |
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor | Description |
|---|---|
CompareGradleBuilds() |
| Modifier and Type | Method | Description |
|---|---|---|
protected org.gradle.internal.file.PathToFileResolver |
getFileResolver() |
|
boolean |
getIgnoreFailures() |
Whether a comparison between non identical builds will fail the task execution.
|
protected ObjectFactory |
getObjectFactory() |
Injects and returns an instance of
ObjectFactory. |
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(File reportDir) |
Sets the directory that will contain the HTML comparison report and any other report files.
|
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.
|
newInputDirectory, newInputFile, newOutputDirectory, newOutputFileappendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString@Inject protected org.gradle.internal.file.PathToFileResolver getFileResolver()
@Inject protected org.gradle.internal.logging.progress.ProgressLoggerFactory getProgressLoggerFactory()
@Inject protected ObjectFactory getObjectFactory()
ObjectFactory.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(File reportDir)
reportDir - The directory that will contain the HTML comparison report and any other report files.public void setReportDir(Object reportDir)
project.file().reportDir - The directory that will contain the HTML comparison report and any other report files.