1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00
Arduino/app
Matthijs Kooijman d2505a08f6 Process platform-specific suffixes immediately
In preferences files, platform-specific versions can be indicated by a
.linux, .windows or .macos suffix on the key name. Previously, these
keys were loaded as normal and then afterwards, all keys were scanned
after loading them and any platform-specific versions replaced the
regular ones.

However, this means that these platform-specific versions get an
unexpected form of priority. Normally, when a single key is set twice,
the latter overrides the first. However, the platform-specific values
could override the regular versions, even when the regular version
occurs later in the file.

This problem was particularly confusing when using the new
platform.local.txt: a regular preference in platform.local.txt did not
override a platform-specific preference in platform.txt.

This commit changes behaviour to process these suffixes directly as they
are read from the preference files. If a suffix for the current platform
is found, the line is processed as if the suffix was not present. If a
suffix for another platform is found, the line is ignored altogether.

This can slightly change the way preferences files are parsed, but as
long as platform-specific preferences are defined after the
corresponding regular preferences, the behaviour should be the same.
2014-04-14 15:35:33 +02:00
..
.settings Fixed eclipse project files 2012-01-11 13:59:39 +01:00
format fixed java 1.5 compatibility issue 2012-12-04 11:54:19 +01:00
lib Update to jssc 2.8.0 2014-01-27 16:06:55 +01:00
src Process platform-specific suffixes immediately 2014-04-14 15:35:33 +02:00
test Fixed typo in test 2014-02-06 10:21:54 +01:00
test-lib added files that state third party licenses 2013-08-28 10:12:33 +02:00
.classpath jssc: updated config files (eclipse, ant build.xml, windows launcher, mac template.app), removed rxtx binaries 2013-11-28 17:27:13 +01:00
.classpath_macosx Importing Processing rev. 5503 (1.0.3). 2009-05-31 15:53:33 +00:00
.classpath_vista fixed permissions on a lot of text files. see #1116 2012-12-10 10:42:49 +01:00
.project Importing Processing rev. 5503 (1.0.3). 2009-05-31 15:53:33 +00:00
build.xml Forgot to include .ino files as test resource 2013-10-22 17:51:54 +02:00
run-linux.launch jssc: updated config files (eclipse, ant build.xml, windows launcher, mac template.app), removed rxtx binaries 2013-11-28 17:27:13 +01:00