Skip to content

Commit ea8a4ec

Browse files
author
Federico Fissore
committed
Merge branch 'ide-1.5.x' into ide-1.5.x-jssc
2 parents 9c618ff + fe6295e commit ea8a4ec

File tree

29 files changed

+142
-91
lines changed

29 files changed

+142
-91
lines changed

app/src/processing/app/Base.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@
6161
* files and images, etc) that comes from that.
6262
*/
6363
public class Base {
64-
public static final int REVISION = 154;
64+
public static final int REVISION = 155;
6565
/** This might be replaced by main() if there's a lib/version.txt file. */
66-
static String VERSION_NAME = "0154";
66+
static String VERSION_NAME = "0155";
6767
/** Set true if this a proper release rather than a numbered revision. */
6868
static public boolean RELEASE = false;
6969

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

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package processing.app.packages;
22

3-
import processing.app.helpers.FileUtils;
4-
import processing.app.helpers.PreferencesMap;
3+
import static processing.app.helpers.StringUtils.wildcardMatch;
54

65
import java.io.File;
76
import java.io.IOException;
@@ -10,7 +9,8 @@
109
import java.util.Comparator;
1110
import java.util.List;
1211

13-
import static processing.app.helpers.StringUtils.wildcardMatch;
12+
import processing.app.helpers.FileUtils;
13+
import processing.app.helpers.PreferencesMap;
1414

1515
public class Library {
1616

@@ -31,17 +31,12 @@ public class Library {
3131
.asList(new String[] { "architectures", "author", "core-dependencies",
3232
"dependencies", "email", "name", "paragraph", "sentence", "url",
3333
"version" });
34-
private static final List<String> OPTIONAL_FOLDERS = Arrays
35-
.asList(new String[] { "arch", "examples", "extras", "src" });
36-
private static final List<String> OPTIONAL_FILES = Arrays
37-
.asList(new String[] { "keywords.txt", "library.properties" });
38-
3934

4035
/**
4136
* Scans inside a folder and create a Library object out of it. Automatically
4237
* detects pre-1.5 libraries. Automatically fills metadata from
4338
* library.properties file if found.
44-
*
39+
*
4540
* @param libFolder
4641
* @return
4742
*/
@@ -74,18 +69,14 @@ private static Library createLibrary(File libFolder) throws IOException {
7469
if (!srcFolder.exists() || !srcFolder.isDirectory())
7570
throw new IOException("Missing 'src' folder");
7671

77-
// 3. check if root folder contains prohibited stuff
72+
// 3. Warn if root folder contains development leftovers
7873
for (File file : libFolder.listFiles()) {
7974
if (file.isDirectory()) {
8075
if (FileUtils.isSCCSOrHiddenFile(file)) {
81-
System.out.println("WARNING: Ignoring spurious " + file.getName() + " folder in '" + properties.get("name") + "' library");
76+
System.out.println("WARNING: Spurious " + file.getName() +
77+
" folder in '" + properties.get("name") + "' library");
8278
continue;
8379
}
84-
if (!OPTIONAL_FOLDERS.contains(file.getName()))
85-
throw new IOException("Invalid folder '" + file.getName() + "'.");
86-
} else {
87-
if (!OPTIONAL_FILES.contains(file.getName()))
88-
throw new IOException("Invalid file '" + file.getName() + "'.");
8980
}
9081
}
9182

build/build.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,8 @@
664664
</copy>
665665

666666
<!-- Unzip AVR tools -->
667-
<unzip dest="windows/work/hardware" src="windows/avr_tools.zip" overwrite="false"/>
667+
<get src="http://downloads.arduino.cc/WinAVR-20081205-arduino-2.zip" dest="windows" usetimestamp="true" skipexisting="true" verbose="true" />
668+
<unzip dest="windows/work/hardware" src="windows/WinAVR-20081205-arduino-2.zip" overwrite="false"/>
668669

669670
<copy todir="windows/work/hardware/tools/avr/avr/include/avr">
670671
<fileset file="windows/eeprom.h" />

build/shared/revisions.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
ARDUINO 1.5.5 BETA
33

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

1520
[libraries]
1621
* avr: Fixed buffer overflow in File::doBuffer() (dreggy)

build/windows/avr_tools.zip

-40.7 MB
Binary file not shown.

0 commit comments

Comments
 (0)