public void setInputDir(File inputDir) throws Exception {
    if (!inputDir.exists())
      throw new UserInputException("Does not exist: "+inputDir);
    if (!inputDir.isDirectory())
      throw new UserInputException("Not a directory: "+inputDir);
    this.inputDir=inputDir;
    inPlace=inputDir.equals(outputDir);
  }