[lombok] Add maven plugin integration test with kapt
This commit is contained in:
committed by
TeamCityServer
parent
3e883120dd
commit
b88f54b31a
+7
-1
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user