org.sonar.api.batch
Class AbstractSourceImporter
java.lang.Object
org.sonar.api.batch.AbstractSourceImporter
- All Implemented Interfaces:
- CheckProject, Sensor, BatchExtension, Extension
public abstract class AbstractSourceImporter
- extends Object
- implements Sensor
- Since:
- 1.10
Field Summary |
static boolean |
DEFAULT_IMPORT_SOURCES
Deprecated. replaced by CoreProperties.CORE_IMPORT_SOURCES_DEFAULT_VALUE since 1.11 |
static String |
KEY_IMPORT_SOURCES
Deprecated. replaced by CoreProperties.CORE_IMPORT_SOURCES_PROPERTY since 1.11 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_IMPORT_SOURCES
@Deprecated
public static final String KEY_IMPORT_SOURCES
- Deprecated. replaced by CoreProperties.CORE_IMPORT_SOURCES_PROPERTY since 1.11
- See Also:
- Constant Field Values
DEFAULT_IMPORT_SOURCES
@Deprecated
public static final boolean DEFAULT_IMPORT_SOURCES
- Deprecated. replaced by CoreProperties.CORE_IMPORT_SOURCES_DEFAULT_VALUE since 1.11
- See Also:
- Constant Field Values
AbstractSourceImporter
public AbstractSourceImporter(Language language)
shouldExecuteOnProject
public boolean shouldExecuteOnProject(Project project)
- Specified by:
shouldExecuteOnProject
in interface CheckProject
analyse
public void analyse(Project project,
SensorContext context)
- Specified by:
analyse
in interface Sensor
analyse
protected void analyse(ProjectFileSystem fileSystem,
SensorContext context)
throws IOException
- Throws:
IOException
parseDirs
protected void parseDirs(SensorContext context,
List<File> files,
List<File> sourceDirs,
boolean unitTest,
Charset sourcesEncoding)
throws IOException
- Throws:
IOException
createResource
protected Resource createResource(File file,
List<File> sourceDirs,
boolean unitTest)
isEnabled
protected boolean isEnabled(Project project)
Copyright © 2009 SonarSource SA. All Rights Reserved.