public class ScentTask extends org.gradle.api.tasks.SourceTask implements ReportingEntity<ScentReports>
| Constructor and Description |
|---|
ScentTask() |
| Modifier and Type | Method and Description |
|---|---|
int |
getLanguageLevel()
The language level to parse the sources with.
|
ScentReports |
getReports()
Get the reports produced by this task.
|
org.gradle.api.file.FileCollection |
getScentClasspath()
Get the classpath containing the Scent classes used by the task.
|
org.gradle.api.file.FileTree |
getSource()
Get the source files to collect metrics from.
|
java.lang.String |
getSourceEncoding()
Get the encoding of the Java source files.
|
java.lang.String |
getToolVersion()
Get the version of Scent to use.
|
boolean |
isEnableLanguagePreviews()
If true, the language feature previews of the language level specified by
setLanguageLevel(int) will be enabled. |
ScentReports |
reports(org.gradle.api.Action<? super ScentReports> pAction)
Configure this task's reports.
|
ScentReports |
reports(groovy.lang.Closure pClosure)
Configure this task's reports.
|
void |
run()
Calculate code metrics for the sources and produce the enabled report(s).
|
void |
setEnableLanguagePreviews(boolean pEnableLanguagePreviews) |
void |
setLanguageLevel(int pLanguageLevel) |
void |
setScentClasspath(org.gradle.api.file.FileCollection pScentClasspath) |
void |
setSourceEncoding(java.lang.String pSourceEncoding) |
void |
setToolVersion(java.lang.String pToolVersion) |
exclude, exclude, exclude, exclude, getExcludes, getIncludes, getPatternSetFactory, include, include, include, include, setExcludes, setIncludes, setSource, setSource, sourceconventionMapping, conventionMapping, getConventionMappingappendParallelSafeAction, 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, usesService@Input public java.lang.String getToolVersion()
public void setToolVersion(java.lang.String pToolVersion)
@Input @Optional public java.lang.String getSourceEncoding()
public void setSourceEncoding(java.lang.String pSourceEncoding)
@Input public int getLanguageLevel()
0 means the default version.public void setLanguageLevel(int pLanguageLevel)
@Input public boolean isEnableLanguagePreviews()
setLanguageLevel(int) will be enabled. Default is false, i.e. language feature
previews will be disabled when parsing the sources.public void setEnableLanguagePreviews(boolean pEnableLanguagePreviews)
@InputFiles public org.gradle.api.file.FileCollection getScentClasspath()
scent configuration.public void setScentClasspath(org.gradle.api.file.FileCollection pScentClasspath)
@InputFiles @SkipWhenEmpty public org.gradle.api.file.FileTree getSource()
getSource in class org.gradle.api.tasks.SourceTaskpublic ScentReports getReports()
getReports in interface ReportingEntity<ScentReports>public ScentReports reports(groovy.lang.Closure pClosure)
reports in interface ReportingEntity<ScentReports>pClosure - A closure that configures the reports.public ScentReports reports(org.gradle.api.Action<? super ScentReports> pAction)
reports in interface ReportingEntity<ScentReports>pAction - An action that configures the reports.public void run()