You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org> on 2007/03/13 14:36:34 UTC

[jira] Updated: (SCM-209) Specifying working directory for Runtime.exec() on linux has no effect

     [ http://jira.codehaus.org/browse/SCM-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Venisse updated SCM-209:
---------------------------------

    Fix Version/s: future

> 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
>          Issue Type: Bug
>          Components: maven-scm-provider-perforce
>    Affects Versions: 1.0-beta-3
>            Reporter: John Didion
>         Assigned To: Mike Perham
>             Fix For: future
>
>
> 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