File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/src/processing/app/packages Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,11 @@ private static Library createLibrary(File libFolder) throws IOException {
7777 // 3. check if root folder contains prohibited stuff
7878 for (File file : libFolder .listFiles ()) {
7979 if (file .isDirectory ()) {
80- if (!SOURCE_CONTROL_FOLDERS .contains (file .getName ()) && !OPTIONAL_FOLDERS .contains (file .getName ()))
80+ if (SOURCE_CONTROL_FOLDERS .contains (file .getName ())) {
81+ System .out .println ("WARNING: Ignoring spurious " + file .getName () + " folder in '" + properties .get ("name" ) + "' library" );
82+ continue ;
83+ }
84+ if (!OPTIONAL_FOLDERS .contains (file .getName ()))
8185 throw new IOException ("Invalid folder '" + file .getName () + "'." );
8286 } else {
8387 if (!OPTIONAL_FILES .contains (file .getName ()))
You can’t perform that action at this time.
0 commit comments