[lombok] Add maven plugin integration test with kapt

This commit is contained in:
Andrey Zinovyev
2021-04-22 12:54:34 +03:00
committed by TeamCityServer
parent 3e883120dd
commit b88f54b31a
11 changed files with 298 additions and 7 deletions
@@ -64,7 +64,13 @@ class LombokCommandLineProcessor : CommandLineProcessor {
override fun processOption(option: AbstractCliOption, value: String, configuration: CompilerConfiguration) {
when (option) {
CONFIG_FILE_OPTION -> configuration.put(CONFIG_FILE, File(value))
CONFIG_FILE_OPTION -> {
val file = File(value)
if (!file.exists()) {
throw IllegalArgumentException("Config file not found ${file.absolutePath}")
}
configuration.put(CONFIG_FILE, file)
}
else -> throw IllegalArgumentException("Unknown option $option")
}
}