Package classycle.ant
Class DependencyCheckingTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- classycle.ant.ClassycleTask
-
- classycle.ant.DependencyCheckingTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class DependencyCheckingTask extends ClassycleTask
Ant Task for checking class dependencies.Attribute Description Required includingClasses Comma or space separated list of wild-card patterns of fully-qualified class name which are included in the analysis. Only '*' are recognized as wild-card character. No. By default all classes defined in the file set are included. excludingClasses Comma or space separated list of wild-card patterns of fully-qualified class name which are excluded from the analysis. Only '*' are recognized as wild-card character. No. By default no class defined in the file set is excluded. mergeInnerClasses If true
all class vertices are merged with the vertices of the corresponding inner classes.No. Default is false. reflectionPattern Comma or space separated list of wild-card patterns of fully-qualified class name. Only '*' are recognized as wild-card character. If in the code of a class an ordinary string constant matches one of these patterns and if this string constant has a valid syntax for a fully-qualified class name this constant will be treated as a class reference.
No. By default ordinary string constants are not treated as class references. definitionFile Path of the dependency definition file. It is either absolute or relative to the base directory. No. By default the dependency definition commands are embedded in the ant task. failOnUnwantedDependencies If true the task will fail if an unwanted dependency is found. No. Default value is false. reportFile Path of the report file. It is either absolute or relative to the base directory. No. By default the result is written onto the console. resultRenderer Fully-qualified class name of a ResultRenderer
.No. By default DefaultResultRenderer
is used.- Author:
- Franz-Josef Elmer
-
-
Field Summary
-
Fields inherited from class classycle.ant.ClassycleTask
_reportFile
-
-
Constructor Summary
Constructors Constructor Description DependencyCheckingTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addText(java.lang.String text)
void
execute()
void
setDefinitionFile(java.io.File definitionFile)
void
setFailOnUnwantedDependencies(boolean failOnUnwantedDependencies)
void
setResultRenderer(java.lang.String resultRenderer)
-
Methods inherited from class classycle.ant.ClassycleTask
add, getClassFileNames, getPattern, getReflectionPattern, isMergeInnerClasses, setExcludingClasses, setIncludingClasses, setMergeInnerClasses, setReflectionPattern, setReportFile
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
setFailOnUnwantedDependencies
public void setFailOnUnwantedDependencies(boolean failOnUnwantedDependencies)
-
setDefinitionFile
public void setDefinitionFile(java.io.File definitionFile)
-
setResultRenderer
public void setResultRenderer(java.lang.String resultRenderer)
-
addText
public void addText(java.lang.String text)
-
execute
public void execute() throws org.apache.tools.ant.BuildException
- Overrides:
execute
in classClassycleTask
- Throws:
org.apache.tools.ant.BuildException
-
-