Unify copyright file headers, update years to include 2011.
[jSite.git] / src / de / todesbaum / jsite / gui / FileScanner.java
index bca7d64..ede930d 100644 (file)
@@ -1,6 +1,5 @@
 /*
- * jSite - a tool for uploading websites into Freenet
- * Copyright (C) 2006 David Roden
+ * jSite - FileScanner.java - Copyright © 2006–2011 David Roden
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -142,8 +141,9 @@ public class FileScanner implements Runnable {
        private void scanFiles(File rootDir, List<String> fileList) throws IOException {
                File[] files = rootDir.listFiles(new FileFilter() {
 
+                       @SuppressWarnings("synthetic-access")
                        public boolean accept(File file) {
-                               return !file.isHidden();
+                               return !project.isIgnoreHiddenFiles() || !file.isHidden();
                        }
                });
                if (files == null) {