public class SpotlessTask extends DefaultTask
Task.Namer
Modifier and Type | Field and Description |
---|---|
protected String |
encoding |
protected FormatExceptionPolicy |
exceptionPolicy |
protected LineEnding.Policy |
lineEndingsPolicy |
protected boolean |
paddedCell |
protected List<FormatterStep> |
steps |
protected Iterable<File> |
target |
TASK_ACTION, 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() |
Iterable<File> |
getInternalTarget()
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 |
setLineEndingsPolicy(LineEnding.Policy lineEndingsPolicy) |
void |
setPaddedCell(boolean paddedCell) |
void |
setSteps(List<FormatterStep> steps) |
void |
setTarget(Iterable<File> target) |
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, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
protected String encoding
protected LineEnding.Policy lineEndingsPolicy
protected boolean paddedCell
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 setExceptionPolicy(FormatExceptionPolicy exceptionPolicy)
@Input public FormatExceptionPolicy getExceptionPolicy()
@InputFiles @Deprecated public Iterable<File> getInternalTarget()
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