code: protected String[] prepareResponseFile(final File outputFile, final String[] args) throws IOException {
      final String baseName = outputFile.getName();
      final File commandFile = new File(outputFile.getParent(), baseName + ".rsp");
      final FileWriter writer = new FileWriter(commandFile);
      int execArgCount = 1;
      if (this.isLibtool) {
        execArgCount++;
      }
      final String[] execArgs = new String[execArgCount + 1];
      System.arraycopy(args, 0, execArgs, 0, execArgCount);
      execArgs[execArgCount] = getCommandFileSwitch(commandFile.toString());
      for (int i = execArgCount; i < args.length; i++) {
        //
        // if embedded space and not quoted then
        // quote argument
        if (args[i].contains(" ") && args[i].charAt(0) != '\"') {
          writer.write('\"');
          writer.write(args[i]);
          writer.write("\"\n");
        } else {
          writer.write(args[i]);
          writer.write('\n');
        }
      }
      writer.close();
      return execArgs;
    }
docs: Prepares argument list to execute the linker using a
  response file.
  
  @param outputFile
  linker output file
  @param args
  output of prepareArguments
  @return arguments for runTask