1
1
package processing .app .packages ;
2
2
3
- import processing .app .helpers .FileUtils ;
4
- import processing .app .helpers .PreferencesMap ;
3
+ import static processing .app .helpers .StringUtils .wildcardMatch ;
5
4
6
5
import java .io .File ;
7
6
import java .io .IOException ;
10
9
import java .util .Comparator ;
11
10
import java .util .List ;
12
11
13
- import static processing .app .helpers .StringUtils .wildcardMatch ;
12
+ import processing .app .helpers .FileUtils ;
13
+ import processing .app .helpers .PreferencesMap ;
14
14
15
15
public class Library {
16
16
@@ -36,7 +36,7 @@ public class Library {
36
36
* Scans inside a folder and create a Library object out of it. Automatically
37
37
* detects pre-1.5 libraries. Automatically fills metadata from
38
38
* library.properties file if found.
39
- *
39
+ *
40
40
* @param libFolder
41
41
* @return
42
42
*/
@@ -69,6 +69,17 @@ private static Library createLibrary(File libFolder) throws IOException {
69
69
if (!srcFolder .exists () || !srcFolder .isDirectory ())
70
70
throw new IOException ("Missing 'src' folder" );
71
71
72
+ // 3. Warn if root folder contains development leftovers
73
+ for (File file : libFolder .listFiles ()) {
74
+ if (file .isDirectory ()) {
75
+ if (FileUtils .isSCCSOrHiddenFile (file )) {
76
+ System .out .println ("WARNING: Spurious " + file .getName () +
77
+ " folder in '" + properties .get ("name" ) + "' library" );
78
+ continue ;
79
+ }
80
+ }
81
+ }
82
+
72
83
// Extract metadata info
73
84
List <String > archs = new ArrayList <String >();
74
85
for (String arch : properties .get ("architectures" ).split ("," ))
0 commit comments