Skip to content

Commit e045cd2

Browse files
committed
Added a warning for library using the no longer supported "arch" folder
1 parent e93760a commit e045cd2

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

app/src/processing/app/packages/Library.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,24 @@ private static Library createLibrary(File libFolder) throws IOException {
5858
// Library sanity checks
5959
// ---------------------
6060

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"
6563
if (!properties.containsKey("maintainer"))
6664
properties.put("maintainer", properties.get("email"));
6765

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
6874
for (String p : MANDATORY_PROPERTIES)
6975
if (!properties.containsKey(p))
7076
throw new IOException("Missing '" + p + "' from library");
7177

72-
// 2. Check layout
78+
// Check layout
7379
boolean useRecursion;
7480
File srcFolder = new File(libFolder, "src");
7581

@@ -88,7 +94,7 @@ private static Library createLibrary(File libFolder) throws IOException {
8894
useRecursion = false;
8995
}
9096

91-
// 3. Warn if root folder contains development leftovers
97+
// Warn if root folder contains development leftovers
9298
for (File file : libFolder.listFiles()) {
9399
if (file.isDirectory()) {
94100
if (FileUtils.isSCCSOrHiddenFile(file)) {

0 commit comments

Comments
 (0)