TikaEvalCLI { private void execute(String[] args) throws Exception { String tool = args[0]; String[] subsetArgs = new String[args.length-1]; System.arraycopy(args, 1, subsetArgs, 0, args.length - 1); if (tool.equals("Report")) { handleReport(subsetArgs); } else if (tool.equals("Compare")) { handleCompare(subsetArgs); } else if (tool.equals("Profile")) { handleProfile(subsetArgs); } else if (tool.equals("StartDB")) { handleStartDB(subsetArgs); } else { System.out.println(specifyTools()); } }  static void main(String[] args);  }
@Test @Ignore("use this for development") public void testOneOff() throws Exception { List<String> args = new ArrayList<>(); args.add("Compare"); args.add("-extractsA"); args.add( ProcessUtils.escapeCommandLine( extractsDir.resolve("extractsA") .toAbsolutePath().toString())); args.add("-extractsB"); args.add( ProcessUtils.escapeCommandLine( extractsDir.resolve("extractsB") .toAbsolutePath().toString())); args.add("-db"); args.add( ProcessUtils.escapeCommandLine( compareDBDir.toAbsolutePath() .toString()+"/"+dbName)); execute(args, 60000); }