@CacheableTask public abstract class Delombok extends DefaultTask implements LombokTask
Task.NamerTASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor and Description |
|---|
Delombok() |
| Modifier and Type | Method and Description |
|---|---|
void |
delombok() |
abstract ConfigurableFileCollection |
getBootclasspath()
override Bootclasspath (analogous to javac -bootclasspath option)
|
abstract ConfigurableFileCollection |
getClasspath()
Classpath (analogous to javac -cp option).
|
abstract Property<String> |
getEncoding()
Sets the encoding of your source files.
|
protected abstract ExecOperations |
getExecOperations() |
protected abstract FileSystemOperations |
getFileSystemOperations() |
protected FileTree |
getFilteredInput() |
Map<String,String> |
getFormat()
Sets formatting rules.
|
abstract ConfigurableFileCollection |
getInput() |
abstract Property<JavaLauncher> |
getLauncher()
The
JavaLauncher which will be used to invoke lombok. |
abstract ConfigurableFileCollection |
getLombokClasspath() |
abstract ConfigurableFileCollection |
getModulePath()
Module path (analogous to javac --module-path option)
|
abstract Property<Boolean> |
getNocopy()
Lombok will only delombok source files.
|
abstract Property<Boolean> |
getPrint()
Print delombok-ed code to standard output instead of saving it in target directory.
|
abstract Property<Boolean> |
getQuiet()
No warnings or errors will be emitted to standard error.
|
abstract ConfigurableFileCollection |
getSourcepath()
Sourcepath (analogous to javac -sourcepath option).
|
abstract DirectoryProperty |
getTarget()
Directory to save delomboked files to.
|
abstract Property<Boolean> |
getVerbose()
Print the name of each file as it is being delombok-ed.
|
void |
setFormat(Map<String,String> format)
Sets formatting rules.
|
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceappendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServicecompareTogetExtensions@Inject protected abstract FileSystemOperations getFileSystemOperations()
@Inject protected abstract ExecOperations getExecOperations()
@Optional public abstract Property<JavaLauncher> getLauncher()
LombokTaskJavaLauncher which will be used to invoke lombok.getLauncher in interface LombokTaskJavaToolchainService.launcherFor(JavaToolchainSpec),
JavaToolchainService.launcherFor(Action)@Console public abstract Property<Boolean> getVerbose()
@Console public abstract Property<Boolean> getQuiet()
@Input @Optional public abstract Property<String> getEncoding()
@Input @Optional public abstract Property<Boolean> getPrint()
@OutputDirectory public abstract DirectoryProperty getTarget()
@Classpath @Optional public abstract ConfigurableFileCollection getClasspath()
@InputFiles @PathSensitive(value=RELATIVE) @Optional public abstract ConfigurableFileCollection getSourcepath()
@Classpath @Optional public abstract ConfigurableFileCollection getBootclasspath()
@Classpath @Optional public abstract ConfigurableFileCollection getModulePath()
@Input @Optional public abstract Property<Boolean> getNocopy()
@Classpath public abstract ConfigurableFileCollection getLombokClasspath()
getLombokClasspath in interface LombokTask@Internal public abstract ConfigurableFileCollection getInput()
@InputFiles @PathSensitive(value=RELATIVE) @SkipWhenEmpty @IgnoreEmptyDirectories protected FileTree getFilteredInput()
public void delombok()
throws IOException
IOExceptionpublic Map<String,String> getFormat()