/** * Saves the fabric8.yml file to the given project directory */ public static boolean saveToFolder(File basedir, ProjectConfig config, boolean overwriteIfExists) throws IOException { File file = new File(basedir, ProjectConfigs.FILE_NAME); if (file.exists()) { if (!overwriteIfExists) { LOG.warn("Not generating " + file + " as it already exists"); return false; } } return saveConfig(config, file); }
operation = "Created"; ProjectConfigs.saveConfig(config, configFile); message = operation + " " + fileName;