org.ajoberstar.gradle.jdepend
Class JDepend

java.lang.Object
  extended by org.gradle.api.internal.AbstractTask
      extended by org.gradle.api.DefaultTask
          extended by org.ajoberstar.gradle.jdepend.JDepend
All Implemented Interfaces:
java.lang.Comparable<org.gradle.api.Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, org.gradle.api.Task, org.gradle.api.tasks.VerificationTask, org.gradle.util.Configurable<org.gradle.api.Task>

public class JDepend
extends org.gradle.api.DefaultTask
implements org.gradle.api.tasks.VerificationTask

Gradle task that runs a JDepend analysis on your code.

This implementation uses the AntJDepend class to do the work.

See {link: http://clarkware.com/software/JDepend.html} for more information about the tool.

Since:
0.1.0

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
JDepend()
           
 
Method Summary
 java.io.File getClassesDir()
          Gets the directory containing the classes to analyze.
 java.io.File getResultsFile()
          Gets the file that will contain the XMl results.
 boolean isIgnoreFailures()
          Gets whether this task will ignore failures and continue running the build.
 void setClassesDir(java.io.File classesDir)
          Sets the directory containing the classes to analyze.
 org.gradle.api.tasks.VerificationTask setIgnoreFailures(boolean ignoreFailures)
          Sets whether this task will ignore failures and continue running the build.
 void setResultsFile(java.io.File resultsFile)
          Sets the file that will contain the XMl results.
 
Methods inherited from class org.gradle.api.internal.AbstractTask
addValidator, captureStandardOutput, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, disableStandardOutputCapture, doFirst, doFirst, doLast, doLast, execute, getActions, getAdditionalProperties, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getDynamicObjectHelper, getEnabled, getExecuter, getGroup, getInputs, getLogger, getLogging, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getStandardOutputCapture, getState, getTaskDependencies, getTemporaryDir, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, onlyIf, onlyIf, property, setActions, setConvention, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setGroup, setName, setOnlyIf, setOnlyIf, setProject, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDepend

public JDepend()
Method Detail

getClassesDir

public java.io.File getClassesDir()
Gets the directory containing the classes to analyze.

Returns:
the classesDir

setClassesDir

public void setClassesDir(java.io.File classesDir)
Sets the directory containing the classes to analyze.

Parameters:
classesDir - the classesDir to set

getResultsFile

public java.io.File getResultsFile()
Gets the file that will contain the XMl results.

Returns:
the resultsFile

setResultsFile

public void setResultsFile(java.io.File resultsFile)
Sets the file that will contain the XMl results.

Parameters:
resultsFile - the resultsFile to set

isIgnoreFailures

public boolean isIgnoreFailures()
Gets whether this task will ignore failures and continue running the build.

Specified by:
isIgnoreFailures in interface org.gradle.api.tasks.VerificationTask
Returns:
the ignoreFailures

setIgnoreFailures

public org.gradle.api.tasks.VerificationTask setIgnoreFailures(boolean ignoreFailures)
Sets whether this task will ignore failures and continue running the build.

Specified by:
setIgnoreFailures in interface org.gradle.api.tasks.VerificationTask
Parameters:
ignoreFailures - the ignoreFailures to set
Returns:
this