Persist a project’s “always force insert” option setting.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 21 Sep 2012 10:49:59 +0000 (12:49 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 21 Sep 2012 10:49:59 +0000 (12:49 +0200)
src/main/java/de/todesbaum/jsite/main/Configuration.java

index 28d4db0..0cc7750 100644 (file)
@@ -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<String, FileOption> fileOptions = new HashMap<String, FileOption>();
@@ -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");