Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-209

Specifying working directory for Runtime.exec() on linux has no effect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-3
    • 1.0
    • None

    Description

      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());

      Attachments

        Issue Links

          Activity

            People

              pschneider Patrick Schneider
              jdidion John Didion
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: