@CacheableTask
public class CheckTask
extends org.gradle.api.tasks.SourceTask
FormatterTask to check formatting.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DESCRIPTION
The description of the task.
|
static java.lang.String |
NAME
The name of the task.
|
| Constructor and Description |
|---|
CheckTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkFormatting() |
protected java.util.stream.Stream<io.spring.javaformat.formatter.FileEdit> |
formatFiles()
Format the source files and provide a
Stream of FileEdit instances. |
java.lang.String |
getEncoding()
Get the file encoding in use.
|
java.io.File |
getReportLocation() |
org.gradle.api.file.FileTree |
getSource() |
void |
setEncoding(java.lang.String encoding)
Set the file encoding in use.
|
void |
setReportLocation(java.io.File reportLocation) |
exclude, exclude, exclude, exclude, getExcludes, getIncludes, getPatternSetFactory, include, include, include, include, setExcludes, setIncludes, setSource, setSource, sourceconventionMapping, conventionMapping, getConventionMappingnewInputDirectory, newInputFile, newOutputDirectory, newOutputFileaddValidator, 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, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringpublic static final java.lang.String NAME
public static final java.lang.String DESCRIPTION
public void checkFormatting()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedException@PathSensitive(value=RELATIVE) public org.gradle.api.file.FileTree getSource()
getSource in class org.gradle.api.tasks.SourceTask@OutputFile public java.io.File getReportLocation()
public void setReportLocation(java.io.File reportLocation)
@Input @Optional public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding - the encoding to setprotected final java.util.stream.Stream<io.spring.javaformat.formatter.FileEdit> formatFiles()
Stream of FileEdit instances.