From: David ‘Bombe’ Roden Date: Tue, 16 Jun 2015 04:37:17 +0000 (+0200) Subject: Deep copy all file options when cloning project X-Git-Tag: 0.13^2~25^2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f4bf696b92e9c50e52a6f536d45c65da82844d67;p=jSite.git Deep copy all file options when cloning project --- diff --git a/src/main/java/de/todesbaum/jsite/application/Project.java b/src/main/java/de/todesbaum/jsite/application/Project.java index 836a2cd..d9146a1 100644 --- a/src/main/java/de/todesbaum/jsite/application/Project.java +++ b/src/main/java/de/todesbaum/jsite/application/Project.java @@ -94,7 +94,9 @@ public class Project implements Comparable { lastInsertionTime = project.lastInsertionTime; alwaysForceInserts = project.alwaysForceInserts; ignoreHiddenFiles = project.ignoreHiddenFiles; - fileOptions = new HashMap(project.fileOptions); + for (Entry fileOption : fileOptions.entrySet()) { + fileOptions.put(fileOption.getKey(), new FileOption(fileOption.getValue())); + } } /**