/*
 * Copyright 2012-present Facebook, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may
 * not use this file except in compliance with the License. You may obtain
 * a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */

package com.facebook.buck.shell;

import com.facebook.buck.step.ExecutionContext;
import com.google.common.collect.ImmutableList;

import java.util.List;

public class DefaultShellStep extends ShellStep {

  private ImmutableList<String> args;

  public DefaultShellStep(String... args) {
    this(ImmutableList.copyOf(args));
  }

  public DefaultShellStep(List<String> args) {
    this.args = ImmutableList.copyOf(args);
  }

  @Override
  public String getShortName() {
    return args.get(0);
  }

  @Override
  protected ImmutableList<String> getShellCommandInternal(
      ExecutionContext context) {
    return args;
  }

}

@@ -731,16 +731,43 @@
 eList;%0A%0A
+import java.nio.file.Path;%0A
 import j
@@ -902,17 +902,20 @@
 tep(
+List%3C
 String
-...
+%3E
  arg
@@ -927,17 +927,24 @@
     this
-(
+.args = 
 Immutabl
@@ -961,17 +961,16 @@
 Of(args)
-)
 ;%0A  %7D%0A%0A 
@@ -994,36 +994,97 @@
 ellStep(
-List%3CString%3E args) %7B
+Path workingDirectory, List%3CString%3E args) %7B%0A    super(workingDirectory.toFile());
 %0A    thi

Add working directory support to DefaultShellStep.