Class ErrorMessageDeclarationCrawler
java.lang.Object
com.exasol.errorcodecrawlermavenplugin.crawler.ErrorMessageDeclarationCrawler
Crawler that reads invocations of
ExaError.messageBuilder(String).-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionErrorMessageDeclarationCrawler(Path rootProjectDirectory, Path projectDirectory, List<Path> classPath, int javaSourceVersion, List<String> excludedFiles) Create a new instance ofErrorMessageDeclarationCrawler. -
Method Summary
Modifier and TypeMethodDescriptionCrawl error codes for a file / folder.
-
Constructor Details
-
ErrorMessageDeclarationCrawler
public ErrorMessageDeclarationCrawler(Path rootProjectDirectory, Path projectDirectory, List<Path> classPath, int javaSourceVersion, List<String> excludedFiles) Create a new instance ofErrorMessageDeclarationCrawler.- Parameters:
rootProjectDirectory- root project directory of multimodule project to which all paths are relative (equivalent to projectDirectory for single-module project)projectDirectory- project directory to which all paths as relative for paths in messagesclassPath- classPath with the dependencies of the classes to crawl. In the unit-tests for some reason this can be empty. Probably Spoon then picks the class path of this project. When run from a jar the classpath is however required.javaSourceVersion- java source version / language level of the projectexcludedFiles- list of glob expressions for files to exclude from validation
-
-
Method Details
-
crawl
Crawl error codes for a file / folder.- Parameters:
pathsToCrawl- file(s) / folder(s) to crawl.- Returns:
ErrorMessageDeclarationCrawler.Resultwith found error codes and findings
-