Skip to content

Commit

Permalink
Merge pull request #120 from gnodet/issue-118
Browse files Browse the repository at this point in the history
Rename ServerMain to MavenDaemon to be more explicit, fixes #118
  • Loading branch information
ppalaga committed Oct 21, 2020
2 parents 4f186f3 + 020c4ef commit 68b14f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -48,7 +48,7 @@
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;

Expand Down Expand Up @@ -279,7 +279,7 @@ private String startDaemon() {
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);
Expand Down
Expand Up @@ -23,7 +23,7 @@
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
Expand Down Expand Up @@ -64,7 +64,7 @@ protected Class<?> findClass(String name) throws ClassNotFoundException {
try {
return super.findClass(name);
} catch (ClassNotFoundException e) {
return ServerMain.class.getClassLoader().loadClass(name);
return MavenDaemon.class.getClassLoader().loadClass(name);
}
}
};
Expand Down

0 comments on commit 68b14f0

Please sign in to comment.