org.codenarc.ant
Class AntFileSetSourceAnalyzer

java.lang.Object
  extended by org.codenarc.analyzer.BaseSourceAnalyzer
      extended by org.codenarc.ant.AntFileSetSourceAnalyzer
All Implemented Interfaces:
groovy.lang.GroovyObject, SourceAnalyzer

public class AntFileSetSourceAnalyzer
extends BaseSourceAnalyzer

SourceAnalyzer implementation that gets source files from one or more Ant FileSets.

Author:
Chris Mair

Field Summary
protected  List<org.apache.tools.ant.types.FileSet> fileSets
           
 
Constructor Summary
AntFileSetSourceAnalyzer(org.apache.tools.ant.Project project, org.apache.tools.ant.types.FileSet fileSet)
          Construct a new instance on the specified Ant FileSet.
 
Method Summary
 Results analyze(RuleSet ruleSet)
          Analyze all source code using the specified RuleSet and return the report results.
 List getSourceDirectories()
           
 
Methods inherited from class org.codenarc.analyzer.BaseSourceAnalyzer
collectViolations, getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileSets

protected final List<org.apache.tools.ant.types.FileSet> fileSets
Constructor Detail

AntFileSetSourceAnalyzer

public AntFileSetSourceAnalyzer(org.apache.tools.ant.Project project,
                                org.apache.tools.ant.types.FileSet fileSet)
Construct a new instance on the specified Ant FileSet.

Parameters:
project - - the Ant Project; must not be null
fileSet - - the Ant FileSet; must not be null
Method Detail

analyze

public Results analyze(RuleSet ruleSet)
Analyze all source code using the specified RuleSet and return the report results.

Parameters:
ruleSet - - the RuleSet to apply to each source component; must not be null.
Returns:
the results from applying the RuleSet to all of the source

getSourceDirectories

public List getSourceDirectories()


Copyright © 2012. All Rights Reserved.