code: public static String[] prepareResponseFile(final File outputFile, final String[] args, final String continuation)
        throws IOException {
      final String baseName = outputFile.getName();
      final File commandFile = new File(outputFile.getParent(), baseName + ".rsp");
      final FileWriter writer = new FileWriter(commandFile);
      for (int i = 1; i < args.length - 1; i++) {
        writer.write(args[i]);
        //
        // if either the current argument ends with
        // or next argument starts with a comma then
        // don't split the line
        if (args[i].endsWith(",") || args[i + 1].startsWith(",")) {
          writer.write(' ');
        } else {
          //
          // split the line to make it more readable
          //
          writer.write(continuation);
        }
      }
      //
      // write the last argument
      //
      if (args.length > 1) {
        writer.write(args[args.length - 1]);
      }
      writer.close();
      final String[] execArgs = new String[2];
      execArgs[0] = args[0];
      //
      // left for the caller to decorate
      execArgs[1] = commandFile.toString();
      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