mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-23 09:16:37 -06:00
allow specification of workspaces directory
This commit is contained in:
parent
2171d5eaf4
commit
af7f1718c4
@ -115,10 +115,10 @@ public class DocServerApp {
|
||||
}
|
||||
logger.info("running public server on interface with address " + net_addr);
|
||||
server.withHost(net_addr);
|
||||
} else if (arg.matches("--workspaces.*")) {
|
||||
String workspace_dir = serverArgs[i + 1];
|
||||
} else if (arg.matches("--workspaces")) {
|
||||
String workspaces_root = serverArgs[i + 1];
|
||||
logger.info("Setting workspace directory to workspace_dir");
|
||||
server.withContextParam("workspaces_dir", workspace_dir);
|
||||
server.withContextParam("workspaces_root", workspaces_root);
|
||||
}
|
||||
}
|
||||
//
|
||||
|
@ -25,7 +25,7 @@ public class WorkspacesEndpoint implements WebServiceObject {
|
||||
private final static Logger logger =
|
||||
LogManager.getLogger(WorkspacesEndpoint.class);
|
||||
|
||||
public static final String WORKSPACE_ROOT = "workspace_root";
|
||||
public static final String WORKSPACE_ROOT = "workspaces_root";
|
||||
|
||||
@Context
|
||||
private Configuration config;
|
||||
|
Loading…
Reference in New Issue
Block a user