code: public static void setInputPaths(JobConf conf, Path... inputPaths) {
      if (!inputPaths[0].isAbsolute()) {
        FileSystem.LogForCollect.info("set relative path to non absolute path: "
            + inputPaths[0]+ " working directory: " + conf.getWorkingDirectory());
      }
      Path path = new Path(conf.getWorkingDirectory(), inputPaths[0]);
      StringBuffer str = new StringBuffer(StringUtils.escapeString(path.toString()));
      for(int i = 1; i < inputPaths.length;i++) {
        str.append(StringUtils.COMMA_STR);
        if (!inputPaths[i].isAbsolute()) {
          FileSystem.LogForCollect.info("set input path to non absolute path: "
              + inputPaths[i] + " working directory: "
              + conf.getWorkingDirectory());
        }
        path = new Path(conf.getWorkingDirectory(), inputPaths[i]);
        str.append(StringUtils.escapeString(path.toString()));
      }
      conf.set("mapred.input.dir", str.toString());
    }
docs: Set the array of {@link Path}s as the list of inputs
  for the map-reduce job.
  
  @param conf Configuration of the job.
  @param inputPaths the {@link Path}s of the input directories/files
  for the map-reduce job.