diff --git a/src/main/java/org/javamodularity/moduleplugin/tasks/StartScriptsMutator.java b/src/main/java/org/javamodularity/moduleplugin/tasks/StartScriptsMutator.java index b760086..aa56f45 100644 --- a/src/main/java/org/javamodularity/moduleplugin/tasks/StartScriptsMutator.java +++ b/src/main/java/org/javamodularity/moduleplugin/tasks/StartScriptsMutator.java @@ -72,10 +72,6 @@ private void configureStartScriptsDoFirst(CreateStartScripts startScriptsTask) { if (ModularCreateStartScripts.UNDEFINED_MAIN_CLASS_NAME.equals(startScriptsTask.getMainClassName())) { startScriptsTask.setMainClassName(execTask.getMain()); } - } else { - if (ModularCreateStartScripts.UNDEFINED_MAIN_CLASS_NAME.equals(startScriptsTask.getMainClass().getOrElse(ModularCreateStartScripts.UNDEFINED_MAIN_CLASS_NAME))) { - startScriptsTask.getMainClass().set(execTask.getMainClass().getOrElse(ModularCreateStartScripts.UNDEFINED_MAIN_CLASS_NAME)); - } } }