From a62447216f8ffc4bfad09a23eb639d206046f9a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 21 Sep 2012 12:49:59 +0200 Subject: [PATCH] =?utf8?q?Persist=20a=20project=E2=80=99s=20=E2=80=9Calway?= =?utf8?q?s=20force=20insert=E2=80=9D=20option=20setting.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/de/todesbaum/jsite/main/Configuration.java | 2 ++ 1 file changed, 2 insertions(+) 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"); -- 2.7.4