diff options
author | Roel Spilker <r.spilker@gmail.com> | 2021-12-13 01:31:15 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2021-12-13 01:31:15 +0100 |
commit | 37d548c7fa1db5284227a861089857fc20de06ce (patch) | |
tree | ad6b193724ec053deb93464e65a19d4da3e0c8af | |
parent | c972edb81e3d223c97175057cc56f5ac9d4e0143 (diff) | |
download | lombok-37d548c7fa1db5284227a861089857fc20de06ce.tar.gz lombok-37d548c7fa1db5284227a861089857fc20de06ce.tar.bz2 lombok-37d548c7fa1db5284227a861089857fc20de06ce.zip |
configuration app returns non-zero value (2) if the configuration contains an error. Fixes #3031
-rw-r--r-- | src/core/lombok/core/configuration/ConfigurationApp.java | 1 | ||||
-rw-r--r-- | test/configuration/src/lombok/core/configuration/TestConfiguration.java | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lombok/core/configuration/ConfigurationApp.java b/src/core/lombok/core/configuration/ConfigurationApp.java index 8d794c8a..268e83b5 100644 --- a/src/core/lombok/core/configuration/ConfigurationApp.java +++ b/src/core/lombok/core/configuration/ConfigurationApp.java @@ -232,6 +232,7 @@ public class ConfigurationApp extends LombokApp { if (!problems.isEmpty()) { err.printf("Problems in the configuration files:%n"); for (String problem : problems) err.printf("- %s%n", problem); + return 2; } return 0; diff --git a/test/configuration/src/lombok/core/configuration/TestConfiguration.java b/test/configuration/src/lombok/core/configuration/TestConfiguration.java index ebb556de..41f22028 100644 --- a/test/configuration/src/lombok/core/configuration/TestConfiguration.java +++ b/test/configuration/src/lombok/core/configuration/TestConfiguration.java @@ -70,7 +70,7 @@ public class TestConfiguration { checkContent(directory, out, "out"); checkContent(directory, err, "err"); - assertEquals(0, result); + assertEquals(2, result); } private void checkContent(File dir, String actual, String type) throws Exception { |