diff options
author | Roel Spilker <r.spilker@gmail.com> | 2018-10-15 23:38:05 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2018-10-15 23:38:05 +0200 |
commit | 836bd0ab573124ea6c168ef8351a7153fbfea363 (patch) | |
tree | 3f5652bca5dfd613e38f53f5f14581cd75da61a1 /src/core | |
parent | 89294fe03c4257e13971dd9db3738511dc01e433 (diff) | |
download | lombok-836bd0ab573124ea6c168ef8351a7153fbfea363.tar.gz lombok-836bd0ab573124ea6c168ef8351a7153fbfea363.tar.bz2 lombok-836bd0ab573124ea6c168ef8351a7153fbfea363.zip |
only call System.exit if the return code is not zero, quickfix for #1795
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lombok/core/Main.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/lombok/core/Main.java b/src/core/lombok/core/Main.java index 6952ab78..47afaefd 100644 --- a/src/core/lombok/core/Main.java +++ b/src/core/lombok/core/Main.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 The Project Lombok Authors. + * Copyright (C) 2009-2018 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -41,7 +41,9 @@ public class Main { Thread.currentThread().setContextClassLoader(Main.class.getClassLoader()); int err = new Main(SpiLoadUtil.readAllFromIterator( SpiLoadUtil.findServices(LombokApp.class)), Arrays.asList(args)).go(); - System.exit(err); + if (err != 0) { + System.exit(err); + } } @ProviderFor(LombokApp.class) @@ -143,7 +145,7 @@ public class Main { out.println("------------------------------"); } out.println("projectlombok.org " + Version.getFullVersion()); - out.println("Copyright (C) 2009-2015 The Project Lombok Authors."); + out.println("Copyright (C) 2009-2018 The Project Lombok Authors."); out.println("Run 'lombok license' to see the lombok license agreement."); out.println(); out.println("Run lombok without any parameters to start the graphical installer."); |