void (final String[] args) { final Env env = new Env(args); env.report(); final String dataPath = env.getProjectPath(); final String oath = env.getOutputPath(); if (dataPath == null) { System.err.println("No project path specified."); } else { try { final File parent = new File(oath == null ? "" : oath); final File dataStorageRoot = new File(dataPath, "mappings"); final Mappings mappings = new Mappings(dataStorageRoot, new PathRelativizerService()); try { //final File outputPath = new File(parent, "snapshot-" + new SimpleDateFormat("dd-MM-yy(hh-mm-ss)").format(new Date()) + ".log"); //FileUtil.createIfDoesntExist(outputPath); //final PrintStream p = new PrintStream(outputPath); //mappings.toStream(p); //p.close(); mappings.toStream(parent); } finally { mappings.close(); } } catch (Exception e) { throw new RuntimeException(e); } } }