1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00
Arduino/build
Matthijs Kooijman d3e2208c01 Process some commandline arguments earlier
Previously, the --board and --port arguments were stored in a variable
first and only processed later. Now, the arguments are processed right
away.

This does mean that the arguments are processed when the GUI is not yet
initialized, which caused problems with calling onBoardOrPortChange and
friends from selectBoard. However, since the GUI is not initialized,
there is no real reason to call them either - if we just set the
preferences to the right values, the GUI will be initialized correctly
later. For this reason, selectBoard no longer calls the GUI update
methods. Instead, those are called from the GUI code when the board is
changed through the menu instead (e.g., after calling selectBoard).

This commit slightly changes behaviour. Previously, --board and --port
only worked in combination with --verify and --upload, but were ignored
when just starting the IDE. Now, these are processed regardless of the
other options present.

Additionally, this commit causes all changed preferences to be saved.
Previously, only changes with --pref were saved, --board and --port
options were only active for the current run. This was caused because
the saving of the preferences happened as a side effect of loading the
file in the Editor, but only the --pref option was processed at that
time.

Note that the --verbose options are still only active for the current
run and are only valid combined with --verify or --upload (since they
default to non-verbose instead of the current preference).
2014-08-19 09:16:47 +02:00
..
cmd Importing Processing rev. 5503 (1.0.3). 2009-05-31 15:53:33 +00:00
javadoc jssc: updated config files (eclipse, ant build.xml, windows launcher, mac template.app), removed rxtx binaries 2013-11-28 17:27:13 +01:00
linux Updated arm gcc to version 4.8.3-2014q1 2014-06-25 11:59:47 +02:00
macosx Revert appbundler until we figure out how to support OSX 10.6 2014-07-04 14:06:57 +02:00
shared Process some commandline arguments earlier 2014-08-19 09:16:47 +02:00
windows Re-enabled serial port detection on Windows 2014-07-02 13:20:16 +02:00
build.xml Revert appbundler until we figure out how to support OSX 10.6 2014-07-04 14:06:57 +02:00
create_reference.pl Including String and Stream methods in local reference. 2012-07-15 09:34:59 -04:00
fetch.sh Updating reference (and reference-fetching scripts). 2010-12-23 19:08:09 -06:00
howto.txt fixed permissions on a lot of text files. see #1116 2012-12-10 10:42:49 +01:00