1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-30 19:52:13 +01:00

Reintroduced warning on development leftovers in 1.5 libraries.

See #1692
This commit is contained in:
Cristian Maglie 2013-11-20 12:12:05 +01:00
parent a4a660154e
commit 3bec9121cd
2 changed files with 20 additions and 4 deletions

View File

@ -1,7 +1,6 @@
package processing.app.packages;
import processing.app.helpers.FileUtils;
import processing.app.helpers.PreferencesMap;
import static processing.app.helpers.StringUtils.wildcardMatch;
import java.io.File;
import java.io.IOException;
@ -10,7 +9,8 @@ import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import static processing.app.helpers.StringUtils.wildcardMatch;
import processing.app.helpers.FileUtils;
import processing.app.helpers.PreferencesMap;
public class Library {
@ -69,6 +69,17 @@ public class Library {
if (!srcFolder.exists() || !srcFolder.isDirectory())
throw new IOException("Missing 'src' folder");
// 3. Warn if root folder contains development leftovers
for (File file : libFolder.listFiles()) {
if (file.isDirectory()) {
if (FileUtils.isSCCSOrHiddenFile(file)) {
System.out.println("WARNING: Spurious " + file.getName() +
" folder in '" + properties.get("name") + "' library");
continue;
}
}
}
// Extract metadata info
List<String> archs = new ArrayList<String>();
for (String arch : properties.get("architectures").split(","))

View File

@ -1,6 +1,10 @@
ARDUINO 1.5.5 BETA
NOTICE:
The 1.5 library format is under heavy review on the Arduino Developers mailing list.
We suggest to delay the adoption of the new format until a stable 1.5.x is released.
[ide]
* Added missing keywords: YunServer, YunClient, pow
* Improved folder ignore: now hidden, starting with a dot, and SCCS folders are ignored
@ -11,6 +15,7 @@ ARDUINO 1.5.5 BETA
* (windows) Upgraded embedded Java runtime to version 7: much faster startup
* Improved files open/save dialogs
* Added line numbers, can be enabled/disabled from preferences (Cayci Gorlitsky)
* Removed check on forbidden file in 1.5 formatted libraries (#1692)
[libraries]
* avr: Fixed buffer overflow in File::doBuffer() (dreggy)