Package org.gradle.api.plugins.quality
Class JDepend
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.plugins.quality.JDepend
- All Implemented Interfaces:
Comparable<Task>
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.TaskInternal
,ExtensionAware
,Reporting<JDependReports>
,Task
,org.gradle.util.Configurable<Task>
Analyzes code with JDepend.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
Task.Namer
-
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.internal.project.IsolatedAntBuilder
Deprecated.The directories containing the classes to be analyzed.The class path containing the JDepend library to be used.Injects and returns an instance ofObjectFactory
.final JDependReports
The reports to be generated by this task.Configures the reports to be generated by this task.reports
(Action<? super JDependReports> configureAction) Configures the reports to be generated by this task.void
run()
void
setClassesDir
(File classesDir) Deprecated.Replaced bygetClassesDirs()
.void
setClassesDirs
(FileCollection classesDirs) The directories containing the classes to be analyzed.void
setJdependClasspath
(FileCollection jdependClasspath) The class path containing the JDepend library to be used.Methods inherited from class org.gradle.api.DefaultTask
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
Methods inherited from class org.gradle.api.internal.AbstractTask
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
-
Constructor Details
-
JDepend
public JDepend()
-
-
Method Details
-
getClassesDirs
The directories containing the classes to be analyzed.- Since:
- 4.0
-
setClassesDirs
The directories containing the classes to be analyzed.- Since:
- 4.0
-
getObjectFactory
Injects and returns an instance ofObjectFactory
.- Since:
- 4.2
-
getAntBuilder
@Inject public org.gradle.api.internal.project.IsolatedAntBuilder getAntBuilder() -
reports
Configures the reports to be generated by this task. The contained reports can be configured by name and closures. Example:jdependTask { reports { xml { destination "build/jdepend.xml" } } }
- Specified by:
reports
in interfaceReporting<JDependReports>
- Parameters:
closure
- The configuration- Returns:
- The reports container
-
reports
Configures the reports to be generated by this task. The contained reports can be configured by name and closures. Example:jdependTask { reports { xml { destination "build/jdepend.xml" } } }
- Specified by:
reports
in interfaceReporting<JDependReports>
- Parameters:
configureAction
- The configuration- Returns:
- The reports container
-
run
public void run() -
getJdependClasspath
The class path containing the JDepend library to be used. -
setJdependClasspath
The class path containing the JDepend library to be used. -
getReports
The reports to be generated by this task.- Specified by:
getReports
in interfaceReporting<JDependReports>
- Returns:
- The report container
-
getClassesDir
Deprecated.Replaced bygetClassesDirs()
.The directory containing the classes to be analyzed. -
setClassesDir
Deprecated.Replaced bygetClassesDirs()
.The directory containing the classes to be analyzed.
-
getClassesDirs()
.