@@ -58,18 +58,24 @@ private static Library createLibrary(File libFolder) throws IOException {
58
58
// Library sanity checks
59
59
// ---------------------
60
60
61
- // 1. Check mandatory properties
62
-
63
- // provide compatibility with 1.5 rev.1 libs
64
- // ("email" field changed to "maintainer")
61
+ // Compatibility with 1.5 rev.1 libraries:
62
+ // "email" field changed to "maintainer"
65
63
if (!properties .containsKey ("maintainer" ))
66
64
properties .put ("maintainer" , properties .get ("email" ));
67
65
66
+ // Compatibility with 1.5 rev.1 libraries:
67
+ // "arch" folder no longer supported
68
+ File archFolder = new File (libFolder , "arch" );
69
+ if (archFolder .isDirectory ())
70
+ throw new IOException ("'arch' folder is no longer supported! See "
71
+ + "http://goo.gl/gfFJzU for more information" );
72
+
73
+ // Check mandatory properties
68
74
for (String p : MANDATORY_PROPERTIES )
69
75
if (!properties .containsKey (p ))
70
76
throw new IOException ("Missing '" + p + "' from library" );
71
77
72
- // 2. Check layout
78
+ // Check layout
73
79
boolean useRecursion ;
74
80
File srcFolder = new File (libFolder , "src" );
75
81
@@ -88,7 +94,7 @@ private static Library createLibrary(File libFolder) throws IOException {
88
94
useRecursion = false ;
89
95
}
90
96
91
- // 3. Warn if root folder contains development leftovers
97
+ // Warn if root folder contains development leftovers
92
98
for (File file : libFolder .listFiles ()) {
93
99
if (file .isDirectory ()) {
94
100
if (FileUtils .isSCCSOrHiddenFile (file )) {
0 commit comments