From: David ‘Bombe’ Roden Date: Fri, 21 Sep 2012 10:49:59 +0000 (+0200) Subject: Persist a project’s “always force insert” option setting. X-Git-Tag: 0.11^2~7 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a62447216f8ffc4bfad09a23eb639d206046f9a1;p=jSite.git Persist a project’s “always force insert” option setting. --- diff --git a/src/main/java/de/todesbaum/jsite/main/Configuration.java b/src/main/java/de/todesbaum/jsite/main/Configuration.java index 28d4db0..0cc7750 100644 --- a/src/main/java/de/todesbaum/jsite/main/Configuration.java +++ b/src/main/java/de/todesbaum/jsite/main/Configuration.java @@ -337,6 +337,7 @@ public class Configuration { } else { project.setIgnoreHiddenFiles(true); } + project.setAlwaysForceInsert(Boolean.parseBoolean(projectNode.getValue("always-force-insert", "false"))); /* load last insert hashes. */ Map fileOptions = new HashMap(); @@ -403,6 +404,7 @@ public class Configuration { projectNode.append("insert-uri", project.getInsertURI()); projectNode.append("request-uri", project.getRequestURI()); projectNode.append("ignore-hidden-files", String.valueOf(project.isIgnoreHiddenFiles())); + projectNode.append("always-force-insert", String.valueOf(project.isAlwaysForceInsert())); /* store last insert hashes. */ SimpleXML lastInsertHashesNode = projectNode.append("last-insert-hashes");