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

java.lang.Object
  extended by com.atlassian.maven.plugin.clover.internal.scanner.AbstractSourceScanner
      extended by com.atlassian.maven.plugin.clover.internal.scanner.MainSourceScanner
All Implemented Interfaces:
CloverSourceScanner

public class MainSourceScanner
extends AbstractSourceScanner

Computes the list of main source files to instrument.


Field Summary
static String SRC_MAIN_GROOVY
           
static String SRC_MAIN_JAVA
           
 
Constructor Summary
MainSourceScanner(CompilerConfiguration configuration, String outputSourceDirectory)
           
 
Method Summary
protected  List<String> getCompileSourceRoots()
           
protected  String getSourceDirectory()
           
 boolean isSourceRootForLanguage(String sourceRoot, com.atlassian.clover.spi.lang.Language language)
          
 void removeGroovySourceRoot(Set<String> sourceRoots)
          From a list of provided sourceRoots remove SRC_MAIN_GROOVY root
 
Methods inherited from class com.atlassian.maven.plugin.clover.internal.scanner.AbstractSourceScanner
getConfiguration, getExcludedFiles, getSourceFilesToInstrument, getSourceFilesToInstrument, removeSourceRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SRC_MAIN_JAVA

@NotNull
public static final String SRC_MAIN_JAVA

SRC_MAIN_GROOVY

@NotNull
public static final String SRC_MAIN_GROOVY
Constructor Detail

MainSourceScanner

public MainSourceScanner(CompilerConfiguration configuration,
                         String outputSourceDirectory)
Method Detail

removeGroovySourceRoot

public void removeGroovySourceRoot(@NotNull
                                   Set<String> sourceRoots)
From a list of provided sourceRoots remove SRC_MAIN_GROOVY root

Specified by:
removeGroovySourceRoot in class AbstractSourceScanner
Parameters:
sourceRoots - list of source roots from
See Also:
SRC_MAIN_GROOVY, AbstractSourceScanner.getSourceFilesToInstrument()

isSourceRootForLanguage

public boolean isSourceRootForLanguage(String sourceRoot,
                                       com.atlassian.clover.spi.lang.Language language)


getCompileSourceRoots

protected List<String> getCompileSourceRoots()
Specified by:
getCompileSourceRoots in class AbstractSourceScanner

getSourceDirectory

protected String getSourceDirectory()
Specified by:
getSourceDirectory in class AbstractSourceScanner


Copyright © 2014 Atlassian Pty Ltd. All Rights Reserved.