GH-357 Fixed MAIN_CLASS lookup logic

Resolves #357
This commit is contained in:
Oleg Zhurakousky
2019-04-17 08:26:15 +03:00
parent cd0ca2f7dc
commit 09053d3f59

View File

@@ -261,7 +261,7 @@ public abstract class AbstractSpringFunctionAdapterInitializer<C> implements Clo
if (System.getenv("MAIN_CLASS") != null) {
mainClass = ClassUtils.resolveClassName(System.getenv("MAIN_CLASS"), classLoader);
}
if (System.getProperty("MAIN_CLASS") != null) {
else if (System.getProperty("MAIN_CLASS") != null) {
mainClass = ClassUtils.resolveClassName(System.getProperty("MAIN_CLASS"), classLoader);
}
else {