only call System.exit if the return code is not zero, quickfix for #1795

This commit is contained in:
Roel Spilker committed 2018-10-15 23:38:05 +02:00
1 parent 89294fe03c
commit 836bd0ab57
1 file changed
+5 -3
+5 -3
View File
@@ -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.");