Class ErrorMessageDeclarationCrawler
- java.lang.Object
-
- com.exasol.errorcodecrawlermavenplugin.ErrorMessageDeclarationCrawler
-
public class ErrorMessageDeclarationCrawler extends Object
Crawler that reads invocations ofExaError.messageBuilder(String).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classErrorMessageDeclarationCrawler.ResultResult ofcrawl(Path...)
-
Constructor Summary
Constructors Constructor Description ErrorMessageDeclarationCrawler(Path projectDirectory, String[] classPath)Create a new instance ofErrorMessageDeclarationCrawler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorMessageDeclarationCrawler.Resultcrawl(Path... pathsToCrawl)Crawl error codes for a file / folder.
-
-
-
Constructor Detail
-
ErrorMessageDeclarationCrawler
public ErrorMessageDeclarationCrawler(Path projectDirectory, String[] classPath)
Create a new instance ofErrorMessageDeclarationCrawler.- Parameters:
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.
-
-
Method Detail
-
crawl
public ErrorMessageDeclarationCrawler.Result crawl(Path... pathsToCrawl)
Crawl error codes for a file / folder.- Parameters:
pathsToCrawl- file(s) / folder(s) to crawl.- Returns:
ErrorMessageDeclarationCrawler.Resultwith found error codes and findings
-
-