Package org.gradle.profiler
Interface BuildMutator
- All Known Implementing Classes:
AbstractBuildMutator,AbstractCacheCleanupMutator,AbstractCleanupMutator,AbstractDelegateFileMutator,AbstractFileChangeMutator,AbstractGitMutator,AbstractJavaSourceFileMutator,AbstractKotlinSourceFileMutator,ApplyAbiChangeToJavaSourceFileMutator,ApplyAbiChangeToKotlinSourceFileMutator,ApplyAbiChangeToSourceFileMutator,ApplyBuildScriptChangeFileMutator,ApplyChangeToAndroidLayoutFileMutator,ApplyChangeToAndroidManifestFileMutator,ApplyChangeToAndroidResourceFileMutator,ApplyChangeToComposableKotlinFileMutator,ApplyChangeToNativeSourceFileMutator,ApplyChangeToPropertyResourceFileMutator,ApplyNonAbiChangeToJavaSourceFileMutator,ApplyNonAbiChangeToKotlinSourceFileMutator,ApplyNonAbiChangeToSourceFileMutator,ApplyProjectDependencyChangeMutator,ApplyValueChangeToAndroidResourceFileMutator,ClearArtifactTransformCacheMutator,ClearBuildCacheMutator,ClearConfigurationCacheStateMutator,ClearGradleUserHomeMutator,ClearJarsCacheMutator,ClearProjectCacheMutator,CompositeBuildMutator,GitCheckoutMutator,GitRevertMutator,ShowBuildCacheSizeMutator
public interface BuildMutator
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidafterBuild(BuildContext context, Throwable error) Runs after each iteration of the build has finished.default voidafterCleanup(BuildContext context, Throwable error) Runs after each iteration of cleanup has finished.default voidafterScenario(ScenarioContext context) Runs after the last iteration of the scenario has finished.default voidbeforeBuild(BuildContext context) Runs before starting an iteration of the build, after any potential cleanup has finished.default voidbeforeCleanup(BuildContext context) Runs before each iteration if cleanup tasks are declared.default voidbeforeScenario(ScenarioContext context) Runs before the first iteration of the scenario.default voidvalidate(BuildInvoker invoker) Validates if the mutator works with the given invoker.
-
Field Details
-
NOOP
-
-
Method Details
-
validate
Validates if the mutator works with the given invoker. -
beforeScenario
Runs before the first iteration of the scenario. -
beforeCleanup
Runs before each iteration if cleanup tasks are declared. -
afterCleanup
Runs after each iteration of cleanup has finished. -
beforeBuild
Runs before starting an iteration of the build, after any potential cleanup has finished. -
afterBuild
Runs after each iteration of the build has finished. -
afterScenario
Runs after the last iteration of the scenario has finished.
-