public class ScentRunnerImpl extends java.lang.Object implements ScentRunner
| Constructor and Description |
|---|
ScentRunnerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
collectMetricsAsXml(java.util.Collection<java.io.File> pFiles,
java.nio.charset.Charset pCharset,
int pLanguageLevel,
boolean pEnableLanguagePreviews,
java.io.File pReportFile)
Scan the directories and files in a collection of Java files, collect source code metrics
for them, and create an XML report from the collected metrics.
|
public void collectMetricsAsXml(java.util.Collection<java.io.File> pFiles,
java.nio.charset.Charset pCharset,
int pLanguageLevel,
boolean pEnableLanguagePreviews,
java.io.File pReportFile)
throws java.io.IOException
collectMetricsAsXml in interface ScentRunnerpFiles - The files and/or directories to collect Java file metrics from.pLanguageLevel - The Java language level to use when parsing the source files. Pass
0 to use the default language level.pEnableLanguagePreviews - If true, language feature previews at the specified language level
will be enabled.pCharset - The charset the Java files are encoded with.pReportFile - The file to write the XML report to.java.io.IOException - if writing the report file fails.java.lang.NullPointerException - if any of the parameters is null.