public class JolTask extends org.gradle.api.DefaultTask implements ReportingEntity<JolReports>
| Modifier and Type | Class and Description |
|---|---|
static class |
JolTask.ClassesDirectory
Specification of a directory containing class files with an optional
PatternFilterable specifying which files to include and/or exclude. |
| Constructor and Description |
|---|
JolTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
classesDirectory(java.lang.Object pDirectoryPath)
Add a directory containing classes to analyze.
|
void |
classesDirectory(java.lang.Object pDirectoryPath,
groovy.lang.Closure<?> pFilterClosure)
Add a directory containing classes to analyze.
|
int |
getAlignment()
Get the alignment parameter for the Jol analysis.
|
org.gradle.api.file.FileCollection |
getAnalysisClassPath()
Get the class path from which to load any classes referenced by the classes to analyze.
|
java.util.Collection<java.lang.String> |
getClasses()
Get the fully qualified names of classes to analyze.
|
java.util.Collection<java.io.File> |
getClassesDirectories()
Get the directories containing class files to analyze.
|
JolParameters.DataModel |
getDataModel()
Get the data model parameter for the Jol analysis.
|
JolParameters.Layout |
getLayout()
Get the layout parameter for the Jol analysis.
|
JolReports |
getReports()
Get the reports produced by this task.
|
org.gradle.api.file.FileCollection |
getToolClassPath()
Get the class path from which to load the Jol classes.
|
java.lang.String |
getToolVersion()
Get the version of Jol to use.
|
JolReports |
reports(org.gradle.api.Action<? super JolReports> pAction)
Configure this task's reports.
|
JolReports |
reports(groovy.lang.Closure pClosure)
Configure this task's reports.
|
void |
run()
Analyze the layout of the specified classes and produce the enabled report(s).
|
void |
setAlignment(int pAlignment) |
void |
setAnalysisClassPath(java.lang.Object pAnalysisClassPath) |
void |
setClasses(java.util.Collection<java.lang.String> pClasses) |
void |
setClasses(java.lang.String... pClasses) |
void |
setDataModel(JolParameters.DataModel pDataModel) |
void |
setLayout(JolParameters.Layout pLayout) |
void |
setToolClassPath(org.gradle.api.file.FileCollection pToolClassPath) |
void |
setToolVersion(java.lang.String pToolVersion) |
void |
sourceSet(org.gradle.api.tasks.SourceSet pSourceSet)
Specify a source set to analyze classes from.
|
void |
sourceSet(org.gradle.api.tasks.SourceSet pSourceSet,
groovy.lang.Closure<?> pFilterClosure)
Specify a source set to analyze classes from.
|
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, usesService@Input public JolParameters.Layout getLayout()
JolParameters.Layout.HOTSPOT.public void setLayout(JolParameters.Layout pLayout)
@Input public JolParameters.DataModel getDataModel()
JolParameters.DataModel.x86_64_COMPRESSED.public void setDataModel(JolParameters.DataModel pDataModel)
@Input public int getAlignment()
8.public void setAlignment(int pAlignment)
@Input public java.lang.String getToolVersion()
public void setToolVersion(java.lang.String pToolVersion)
@Input public java.util.Collection<java.lang.String> getClasses()
public void setClasses(java.util.Collection<java.lang.String> pClasses)
public void setClasses(java.lang.String... pClasses)
@InputFiles public org.gradle.api.file.FileCollection getAnalysisClassPath()
public void setAnalysisClassPath(java.lang.Object pAnalysisClassPath)
@InputFiles public org.gradle.api.file.FileCollection getToolClassPath()
public void setToolClassPath(org.gradle.api.file.FileCollection pToolClassPath)
@InputFiles public java.util.Collection<java.io.File> getClassesDirectories()
public void classesDirectory(java.lang.Object pDirectoryPath)
pDirectoryPath - An object that resolves to a directory. See the documentation of
org.gradle.api.Project::file() for the possible types that
can be resolved.java.lang.NullPointerException - if pDirectoryPath is null.public void classesDirectory(java.lang.Object pDirectoryPath,
groovy.lang.Closure<?> pFilterClosure)
Closure that configures a PatternFilterable.pDirectoryPath - An object that resolves to a directory. See the documentation of
org.gradle.api.Project::file() for the possible types that
can be resolved.pFilterClosure - A closure that configures a PatternFilterable. Pass null to
include all class files in the directory.java.lang.NullPointerException - if pDirectoryPath is null.public void sourceSet(org.gradle.api.tasks.SourceSet pSourceSet)
By default this task analyzes the main source set, if available.
pSourceSet - The source set.java.lang.NullPointerException - if pSourceSet is null.public void sourceSet(org.gradle.api.tasks.SourceSet pSourceSet,
groovy.lang.Closure<?> pFilterClosure)
Closure that configures a PatternFilterable.
By default this task analyzes the main source set, if available.
pSourceSet - The source set.pFilterClosure - A closure that configures a PatternFilterable. Pass null to
include all class files in the source set's classes directories.java.lang.NullPointerException - if pSourceSet is null.public JolReports getReports()
getReports in interface ReportingEntity<JolReports>public JolReports reports(groovy.lang.Closure pClosure)
reports in interface ReportingEntity<JolReports>pClosure - A closure that configures the reports.public JolReports reports(org.gradle.api.Action<? super JolReports> pAction)
reports in interface ReportingEntity<JolReports>pAction - An action that configures the reports.java.lang.NullPointerException - if pAction is null.public void run()