From: David ‘Bombe’ Roden Date: Fri, 1 Jan 2010 19:56:59 +0000 (+0100) Subject: Add “ignore hidden files” property to project. X-Git-Tag: 0.9~42 X-Git-Url: https://git.pterodactylus.net/?p=jSite.git;a=commitdiff_plain;h=d5da3f0c6ec434e9d0754576c002762f49cf26bb Add “ignore hidden files” property to project. --- diff --git a/src/de/todesbaum/jsite/application/Project.java b/src/de/todesbaum/jsite/application/Project.java index 3768d06..669b782 100644 --- a/src/de/todesbaum/jsite/application/Project.java +++ b/src/de/todesbaum/jsite/application/Project.java @@ -60,6 +60,9 @@ public class Project implements Comparable { /** The edition to insert to. */ protected int edition; + /** Whether to ignore hidden directory. */ + private boolean ignoreHiddenFiles; + /** Options for files. */ protected Map fileOptions = new HashMap(); @@ -86,6 +89,7 @@ public class Project implements Comparable { localPath = project.localPath; indexFile = project.indexFile; lastInsertionTime = project.lastInsertionTime; + ignoreHiddenFiles = project.ignoreHiddenFiles; fileOptions = new HashMap(project.fileOptions); } @@ -248,6 +252,27 @@ public class Project implements Comparable { } /** + * Returns whether hidden files are ignored, i.e. not inserted. + * + * @return {@code true} if hidden files are not inserted, {@code false} + * otherwise + */ + public boolean isIgnoreHiddenFiles() { + return ignoreHiddenFiles; + } + + /** + * Sets whether hidden files are ignored, i.e. not inserted. + * + * @param ignoreHiddenFiles + * {@code true} if hidden files are not inserted, {@code false} + * otherwise + */ + public void setIgnoreHiddenFiles(boolean ignoreHiddenFiles) { + this.ignoreHiddenFiles = ignoreHiddenFiles; + } + + /** * {@inheritDoc} *

* This method returns the name of the project.