Skip to content

Commit

Permalink
Changes requested by PLC review
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffmaki committed Jun 3, 2021
1 parent 62272ef commit 644f1b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ public class CommandLineParameters implements Cloneable {
description = "Path to serve local client files at.")
public String clientPath = null;

@Parameter(names = {"--disableNativeClient"},
description = "Disable native client.")
public boolean disableNativeClient = false;
@Parameter(names = {"--disableDebugClient"},
description = "Disable embedded debug client that comes included with OTP.")
public boolean disableDebugClient = false;

@Parameter(names = {"--clientFiles"}, validateWith = ReadableDirectory.class,
description = "Path to directory containing local client files to serve.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void run() {
httpServer.getServerConfiguration().addHttpHandler(dynamicHandler, "/otp/");

/* 2. A static content handler to serve the client JS apps etc. from the classpath. */
if(params.disableNativeClient != true) {
if(params.disableDebugClient != true) {
CLStaticHttpHandler staticHandler = new CLStaticHttpHandler(GrizzlyServer.class.getClassLoader(), "/client/");
if (params.disableFileCache) {
LOG.info("Disabling HTTP server static file cache.");
Expand Down

0 comments on commit 644f1b8

Please sign in to comment.