From a71b62ca1a7d30f0692713d68e443e514d1f720d Mon Sep 17 00:00:00 2001 From: sasha0552 <45110640+sasha0552@users.noreply.github.com> Date: Fri, 24 Apr 2020 23:32:08 +0600 Subject: [PATCH] [ANY] Setup "jar filename" - specify for what (#385) --- .../pro/gravit/launcher/server/setup/ServerWrapperSetup.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java b/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java index 7aefc872..70e30e85 100644 --- a/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java +++ b/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java @@ -25,14 +25,14 @@ public ServerWrapperSetup() throws IOException { public void run() throws IOException { ServerWrapper wrapper = ServerWrapper.wrapper; ServerWrapper.modulesManager.invokeEvent(new ServerWrapperPreSetupEvent(this)); - System.out.println("Print jar filename:"); + System.out.println("Print server jar filename:"); String jarName = commands.commandHandler.readLine(); Path jarPath = Paths.get(jarName); String mainClassName; try (JarFile file = new JarFile(jarPath.toFile())) { URL jarURL = jarPath.toUri().toURL(); urlClassLoader = new PublicURLClassLoader(new URL[]{jarURL}); - LogHelper.info("Check jar MainClass"); + LogHelper.info("Check server jar MainClass"); mainClassName = file.getManifest().getMainAttributes().getValue("Main-Class"); if (mainClassName == null) { LogHelper.error("Main-Class not found in MANIFEST");