@Incubating public class CompareGradleBuilds extends DefaultTask implements VerificationTask
Task.Namer
修飾子とタイプ | フィールドと説明 |
---|---|
static List<String> |
DEFAULT_TASKS |
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
コンストラクタと説明 |
---|
CompareGradleBuilds() |
修飾子とタイプ | メソッドと説明 |
---|---|
protected org.gradle.api.internal.file.FileResolver |
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.logging.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, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, 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, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toString
@Inject protected org.gradle.api.internal.file.FileResolver getFileResolver()
@Inject protected org.gradle.logging.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
インタフェース内 VerificationTask
public void setIgnoreFailures(boolean ignoreFailures)
setIgnoreFailures
インタフェース内 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.