Use base directory when resolving security manager's work directory.
@@ -176,6 +176,7 @@ public class PropertyBuilder {
jvmArguments = addParam(jvmArguments, properties.getProperty("grinder.param", ""));
jvmArguments = addPythonPathJvmArgument(jvmArguments);
jvmArguments = addCustomDns(jvmArguments);
+ jvmArguments = addUserDir(jvmArguments);
if (server) {
jvmArguments = addServerMode(jvmArguments);
}
@@ -368,6 +369,11 @@ public class PropertyBuilder {
return jvmArguments;
}
+ private StringBuilder addUserDir(StringBuilder jvmArguments) {
+ jvmArguments.append(" -Duser.dir=" + baseDirectory.getFile().getPath() + " ");
+ return jvmArguments;
+ }
+
/**
* Rebase Host String.. add the missing ip addresses if only host is
* provided..
