Don’t warn about no files to insert when there are actually just no file options.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 25 Aug 2010 19:11:05 +0000 (21:11 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 25 Aug 2010 19:17:45 +0000 (21:17 +0200)
src/de/todesbaum/jsite/application/ProjectInserter.java

index 756e121..9373fa4 100644 (file)
@@ -439,7 +439,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
                }
                Map<String, FileOption> fileOptions = project.getFileOptions();
                Set<Entry<String, FileOption>> fileOptionEntries = fileOptions.entrySet();
-               boolean insert = false;
+               boolean insert = fileOptionEntries.isEmpty();
                for (Entry<String, FileOption> fileOptionEntry : fileOptionEntries) {
                        String fileName = fileOptionEntry.getKey();
                        FileOption fileOption = fileOptionEntry.getValue();