private String runCreateFileAndGetContent(String[] args) throws Exception { updater.parseCommandLine(args); File resultFile = updater.createUpdateList(); String content = FileUtil.getFileContent(resultFile); FileUtil.deleteFile(resultFile); return content; }
public static void main(String[] args) { UpdateFileList updater = testUpdater != null ? testUpdater : new UpdateFileList(); updater.parseCommandLine(args); if (updater.directoriesAreValid()) { updater.createUpdateList(); updater.createDoNotUpdateList(); } else { LOG.severe("Some directories are invalid. Aborting."); updater.exit(); } }