Specifying working directory for Runtime.exec() on linux has no effect
----------------------------------------------------------------------
Key: SCM-209
URL: http://jira.codehaus.org/browse/SCM-209
Project: Maven SCM
Type: Bug
Components: maven-scm-provider-perforce
Versions: 1.0-beta-3
Reporter: John Didion
Passing the working directory as an argument to Runtime.exec seems to have no
effect on linux...perforce still goes with whatever the VM's initial working
directory was. You need to set -d to make it use the correct one.
In PerforceScmProvider.createP4Command():
command.createArgument().setValue("-d");
command.createArgument().setValue(workingDir.getAbsolutePath());
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira