protected List<String> buildCommand(GitMvOptions options, List<File> source, File destination) {
    List<String> cmd = new ArrayList<String>();

    cmd.add(JavaGitConfiguration.getGitCommand());
    cmd.add("mv");

    if (null != options) {
      if (options.isOptF()) {
        cmd.add("-f");
      }
      if (options.isOptK()) {
        cmd.add("-k");
      }
      if (options.isOptN()) {
        cmd.add("-n");
        setDryRun(true);
      }
    }
    for (File file : source) {
      cmd.add(file.getPath());
    }
    cmd.add(destination.getPath());
    return cmd;
  }
protected List<String> buildCommand(GitMvOptions options, List<File> source, File destination) {
    List<String> cmd = new ArrayList<String>();

    cmd.add(JavaGitConfiguration.getGitCommand());
    cmd.add("mv");

    if (null != options) {
      if (options.isOptF()) {
        cmd.add("-f");
      }
      if (options.isOptK()) {
        cmd.add("-k");
      }
      if (options.isOptN()) {
        cmd.add("-n");
        setDryRun(true);
      }
    }
    for (File file : source) {
      cmd.add(file.getPath());
    }
    cmd.add(destination.getPath());
    return cmd;
  }
protected List < String > buildCommand ( GitMvOptions options , List < File > source , File destination ) { List < String > cmd = new ArrayList < String > ( ) ; cmd . add ( JavaGitConfiguration . getGitCommand ( ) ) ; cmd . add ( "mv" ) ; if ( null != options ) { if ( options . isOptF ( ) ) { cmd . add ( "-f" ) ; } if ( options . isOptK ( ) ) { cmd . add ( "-k" ) ; } if ( options . isOptN ( ) ) { cmd . add ( "-n" ) ; setDryRun ( true ) ; } } for ( File file : source ) { cmd . add ( file . getPath ( ) ) ; } cmd . add ( destination . getPath ( ) ) ; return cmd ; }
Builds a list of command arguments to pass to <code>ProcessBuilder</code>.

@param options
The options to include on the command line.
@param source
The source file/directory/symlink to rename/move.
@param destination
The destination file/directory/symlink to rename/move to.
@return A list of the individual arguments to pass to <code>ProcessBuilder</code>.
Builds a list of command arguments to pass to <code > ProcessBuilder< / code > .