@Incubating @CacheableTask public class ValidateTaskProperties extends org.gradle.api.internal.ConventionTask implements VerificationTask
Task properties must be annotated with one of:
Input
,
@Nested
,
@InputFile
,
@InputDirectory
,
@InputFiles
to mark it as an input to the task.
OutputFile
,
@OutputDirectory
to mark it as an output of the task.
Task.Namer
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
ValidateTaskProperties() |
Modifier and Type | Method and Description |
---|---|
FileCollection |
getClasses()
The classes to validate.
|
protected org.gradle.internal.classloader.ClassLoaderFactory |
getClassLoaderFactory() |
FileCollection |
getClasspath()
The classpath used to load the classes under validation.
|
protected org.gradle.api.internal.DocumentationRegistry |
getDocumentationRegistry() |
boolean |
getFailOnWarning()
Returns whether the build should break when the verifications performed by this task detects a warning.
|
boolean |
getIgnoreFailures()
Specifies whether the build should break when the verifications performed by this task fail.
|
RegularFileProperty |
getOutputFile()
Returns the output file to store the report in.
|
void |
setClasses(FileCollection classes)
Sets the classes to validate.
|
void |
setClasspath(FileCollection classpath)
Sets the classpath used to load the classes under validation.
|
void |
setFailOnWarning(boolean failOnWarning)
Specifies whether the build should break when the verifications performed by this task detects a warning.
|
void |
setIgnoreFailures(boolean ignoreFailures)
Specifies whether the build should break when the verifications performed by this task fail.
|
void |
validateTaskClasses() |
conventionMapping, conventionMapping, getConventionMapping
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
addValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
public void validateTaskClasses() throws IOException
IOException
public boolean getIgnoreFailures()
getIgnoreFailures
in interface VerificationTask
public void setIgnoreFailures(boolean ignoreFailures)
setIgnoreFailures
in interface VerificationTask
ignoreFailures
- false to break the build on failure, true to ignore the failures. The default is false.@PathSensitive(value=RELATIVE) @InputFiles @SkipWhenEmpty public FileCollection getClasses()
public void setClasses(FileCollection classes)
@Classpath public FileCollection getClasspath()
public void setClasspath(FileCollection classpath)
@Input public boolean getFailOnWarning()
@Optional @OutputFile public RegularFileProperty getOutputFile()
public void setFailOnWarning(boolean failOnWarning)
failOnWarning
- true
to break the build on warning, false
to ignore warnings. The default is false
.@Inject protected org.gradle.internal.classloader.ClassLoaderFactory getClassLoaderFactory()
@Inject protected org.gradle.api.internal.DocumentationRegistry getDocumentationRegistry()