com.atlassian.maven.plugin.clover.internal.scanner
Class AbstractCloverSourceScanner

java.lang.Object
  extended by com.atlassian.maven.plugin.clover.internal.scanner.AbstractCloverSourceScanner
All Implemented Interfaces:
CloverSourceScanner
Direct Known Subclasses:
MainCloverSourceScanner, TestCloverSourceScanner

public abstract class AbstractCloverSourceScanner
extends java.lang.Object
implements CloverSourceScanner

Code common to compute the list of source files to instrument (main sources, test sources).


Constructor Summary
AbstractCloverSourceScanner(CompilerConfiguration configuration, java.lang.String outputSourceDirectory)
           
 
Method Summary
protected  CompilerConfiguration getConfiguration()
           
 java.util.Map getExcludedFiles()
          
protected abstract  java.lang.String getSourceDirectory()
           
 java.util.Map getSourceFilesToInstrument()
          
protected abstract  java.util.List getSourceRoots()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCloverSourceScanner

public AbstractCloverSourceScanner(CompilerConfiguration configuration,
                                   java.lang.String outputSourceDirectory)
Method Detail

getConfiguration

protected CompilerConfiguration getConfiguration()

getSourceFilesToInstrument

public java.util.Map getSourceFilesToInstrument()

Specified by:
getSourceFilesToInstrument in interface CloverSourceScanner
Returns:
the list of source files to instrument taking into account the includes and excludes specified by the user. The Map is indexed on source roots.
See Also:
CloverSourceScanner.getSourceFilesToInstrument()

getExcludedFiles

public java.util.Map getExcludedFiles()

Specified by:
getExcludedFiles in interface CloverSourceScanner
Returns:
the list of excluded files that we'll need to copy. This is required as otherwise the excluded files won't be in the new Clover source directory and thus won't be compiled by the compile plugin. This will lead to compilation errors if any other Java file depends on any of them. The Map is indexed on source roots.
See Also:
CloverSourceScanner.getExcludedFiles()

getSourceRoots

protected abstract java.util.List getSourceRoots()

getSourceDirectory

protected abstract java.lang.String getSourceDirectory()


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.