spring-boot-migrator
spring-boot-migrator copied to clipboard
Make logging of compile errors configurable
What needs to be done
The logCompilationWarningsAndErrors flag of JavaParser.Builder should be configrable.
The flag should be provided through a new property parser.logCompilationWarningsAndErrors=[true|false]
Why it needs to be done
It allows users to turn on/off logging output of JavaCompiler which can be annoying in some cases and helpful in others.
Acceptance Criteria
- [ ] The flag for the JavaParser.Builder created in MavenModuleParser is taken from
ParserProperties - [ ] The property and it's usage is described README
- [ ] A test provided. E.g. parse the same (erronous) class twice in an integration test, once with
trueonce withfalseand assert the rendered output