public class SpotlessTask extends DefaultTask
Task.Namer| Modifier and Type | Field and Description |
|---|---|
protected String |
encoding |
protected FormatExceptionPolicy |
exceptionPolicy |
protected String |
filePatterns |
protected LineEnding.Policy |
lineEndingsPolicy |
protected boolean |
paddedCell |
protected List<FormatterStep> |
steps |
protected Iterable<File> |
target |
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor and Description |
|---|
SpotlessTask() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addStep(FormatterStep step) |
String |
getEncoding() |
FormatExceptionPolicy |
getExceptionPolicy() |
String |
getFilePatterns() |
Iterable<File> |
getInternalTargetInput()
Deprecated.
|
Iterable<File> |
getInternalTargetOutput()
Deprecated.
|
LineEnding.Policy |
getLineEndingsPolicy() |
List<FormatterStep> |
getSteps() |
Iterable<File> |
getTarget() |
boolean |
isPaddedCell() |
void |
performAction(IncrementalTaskInputs inputs) |
void |
setApply() |
void |
setCheck() |
void |
setEncoding(String encoding) |
void |
setExceptionPolicy(FormatExceptionPolicy exceptionPolicy) |
void |
setFilePatterns(String filePatterns) |
void |
setLineEndingsPolicy(LineEnding.Policy lineEndingsPolicy) |
void |
setPaddedCell(boolean paddedCell) |
void |
setSteps(List<FormatterStep> steps) |
void |
setTarget(Iterable<File> target) |
appendParallelSafeAction, 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, getRequiredServices, getServices, getSharedResources, 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, usesServiceprotected String encoding
protected LineEnding.Policy lineEndingsPolicy
protected boolean paddedCell
protected String filePatterns
protected FormatExceptionPolicy exceptionPolicy
protected List<FormatterStep> steps
public void setEncoding(String encoding)
@Input public LineEnding.Policy getLineEndingsPolicy()
public void setLineEndingsPolicy(LineEnding.Policy lineEndingsPolicy)
@Input public boolean isPaddedCell()
public void setPaddedCell(boolean paddedCell)
public void setFilePatterns(String filePatterns)
public void setExceptionPolicy(FormatExceptionPolicy exceptionPolicy)
@Input public FormatExceptionPolicy getExceptionPolicy()
@InputFiles @Deprecated public Iterable<File> getInternalTargetInput()
Internal use only.
@OutputFiles @Deprecated public Iterable<File> getInternalTargetOutput()
Internal use only.
@Input public List<FormatterStep> getSteps()
public void setSteps(List<FormatterStep> steps)
public boolean addStep(FormatterStep step)
public void setCheck()
public void setApply()
public void performAction(IncrementalTaskInputs inputs) throws Exception
Exception