mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-26 05:58:27 +00:00
Merge pull request #120 from gnodet/issue-118
Rename ServerMain to MavenDaemon to be more explicit, fixes #118
This commit is contained in:
@@ -48,7 +48,7 @@ import org.jboss.fuse.mvnd.common.DaemonStopEvent;
|
||||
import org.jboss.fuse.mvnd.common.Environment;
|
||||
import org.jboss.fuse.mvnd.common.Message;
|
||||
import org.jboss.fuse.mvnd.common.Serializer;
|
||||
import org.jboss.fuse.mvnd.common.ServerMain;
|
||||
import org.jboss.fuse.mvnd.common.MavenDaemon;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@@ -279,7 +279,7 @@ public class DaemonConnector {
|
||||
args.add(Environment.DAEMON_IDLE_TIMEOUT.asCommandLineProperty(timeout));
|
||||
}
|
||||
|
||||
args.add(ServerMain.class.getName());
|
||||
args.add(MavenDaemon.class.getName());
|
||||
command = String.join(" ", args);
|
||||
|
||||
LOGGER.debug("Starting daemon process: uid = {}, workingDir = {}, daemonArgs: {}", uid, workingDir, command);
|
||||
|
@@ -23,7 +23,7 @@ import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class ServerMain {
|
||||
public class MavenDaemon {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
// Disable URL caching so that the JVM does not try to cache resources
|
||||
@@ -64,7 +64,7 @@ public class ServerMain {
|
||||
try {
|
||||
return super.findClass(name);
|
||||
} catch (ClassNotFoundException e) {
|
||||
return ServerMain.class.getClassLoader().loadClass(name);
|
||||
return MavenDaemon.class.getClassLoader().loadClass(name);
|
||||
}
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user