protected void startHeritrix(String path) throws Exception { String authPassword = (new BigInteger(SecureRandom.getSeed(16))).abs().toString(16); String[] args = {"-j", path + "/jobs", "-a", authPassword}; // TODO: add auth password? heritrix = new Heritrix(); heritrix.instanceMain(args); configureHeritrix(); heritrix.getEngine().requestLaunch("selftest-job"); }