[ 
https://issues.apache.org/jira/browse/SCM-209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17964565#comment-17964565
 ] 

Olivier Lamy commented on SCM-209:
----------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-scm#413|https://github.com/apache/maven-scm/issues/413]. 

> Specifying working directory for Runtime.exec() on linux has no effect
> ----------------------------------------------------------------------
>
>                 Key: SCM-209
>                 URL: https://issues.apache.org/jira/browse/SCM-209
>             Project: Maven SCM (Moved to GitHub Issues)
>          Issue Type: Bug
>          Components: maven-scm-provider-perforce
>    Affects Versions: 1.0-beta-3
>            Reporter: John Didion
>            Assignee: Patrick Schneider
>            Priority: Major
>             Fix For: 1.0
>
>
> 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 was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to