public class ScentTask extends org.gradle.api.tasks.SourceTask implements ReportingEntity<ScentReports>
| Constructor and Description |
|---|
ScentTask() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 |
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, getConventionMappingaddValidator, 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, newInputDirectory, newInputFile, newOutputDirectory, newOutputFile, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString@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)
@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()