1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00
Commit Graph

816 Commits

Author SHA1 Message Date
Mattia Bertorello
3c5dbe6f9d
Parse the old library index file also when the signature verify fail 2019-07-18 10:27:20 +02:00
Mattia Bertorello
636f93058b
Fix linter problems 2019-07-12 15:40:53 +02:00
Mattia Bertorello
4da41f7fa5
Complete disable cache if the file is not a *_indexes 2019-07-12 14:53:03 +02:00
Mattia Bertorello
85e91ef079
Change builder domain with https and add logging 2019-07-12 14:36:15 +02:00
Mattia Bertorello
2d042820a0
Delete cached file if the signature verify fail 2019-07-12 14:36:03 +02:00
Mattia Bertorello
1bfdf83db8
Reduce download method complexity of FileDownloader class. 2019-07-11 16:36:04 +02:00
Mattia Bertorello
a8c7184c11
Do not cache the core or the library because are too big
and will be downloaded only one time
2019-07-11 15:01:41 +02:00
Mattia Bertorello
dde5668b27
Increase the redirect to follow to 20
Add the possibility to configure them `http.max_redirect_number`
2019-07-11 14:36:45 +02:00
Mattia Bertorello
58fc5a5011
Add commons-io dependency and replace the extract file name with FilenameUtils 2019-07-11 14:32:50 +02:00
Mattia Bertorello
4a944df758
Fix portable mode and make the fileCached immutable 2019-07-07 16:39:55 +02:00
Mattia Bertorello
fa77c15e8e
Not delete the file if the signature fail 2019-07-05 17:00:12 +02:00
Mattia Bertorello
183e1c9ff6
Remove empty string from the http.signature_verify_domains preferences 2019-07-05 12:36:18 +02:00
Mattia Bertorello
53695d49d8
Add comments 2019-07-04 18:14:06 +02:00
Mattia Bertorello
412b6d1bf3
Fix download package index from external sources 2019-07-03 18:38:08 +02:00
Mattia Bertorello
9e38c878ec
Add Copyright in the files 2019-07-03 18:08:08 +02:00
Mattia Bertorello
f2a4ea5e15
Code reformat 2019-07-03 18:06:16 +02:00
Mattia Bertorello
1bc994ec86
Use verifyDomain also for the library index 2019-07-03 18:02:49 +02:00
Mattia Bertorello
e1e4fb30b8
Refactoring FileDownloaderCache 2019-07-03 18:02:21 +02:00
Mattia Bertorello
5dba31bfd7
Change key from connection_timeout to connection_timeout_ms preferences 2019-07-03 15:41:29 +02:00
Mattia Bertorello
a7d395f45e
Add cache.json file and improve stability 2019-07-03 15:29:42 +02:00
Mattia Bertorello
00818af181
Refactoring HttpConnectionManger and request-id 2019-07-03 15:27:50 +02:00
Mattia Bertorello
5157688590
Split download and check signature, add check signature to library index 2019-07-03 15:26:57 +02:00
Mattia Bertorello
53be417989
Add log4j dependencies 2019-07-02 16:10:12 +02:00
Mattia Bertorello
207128db91
fix the misleading exception throw on windows
- The file will be close before delete it
- Some refactoring of the downloader cache
2019-06-29 18:16:59 +02:00
Mattia Bertorello
d3e712232b
Convert CircularRedirectException in IOException 2019-06-28 17:52:31 +02:00
Mattia Bertorello
e6f09123bc
Remove notNull annotation that failed the build 2019-06-28 17:49:05 +02:00
Mattia Bertorello
d089323342
Fix possible empty files during the download of the package index 2019-06-28 17:44:17 +02:00
Mattia Bertorello
8ca093b945
Add slf4j, optimize some code and fix reported lint problem 2019-06-28 13:02:50 +02:00
Mattia Bertorello
6592c42dcf
Add the file downloader cache to make faster the library/boards manager 2019-06-28 09:02:21 +02:00
Martino Facchin
d518d7683c Fix NPEs if no hardware core is installed
Fixes #8229
2019-05-06 15:10:42 +02:00
Cristian Maglie
72330aaddd Fix .classpath: commons-lang3-3.3.2 -> commons-lang3-3.8.1.jar 2019-04-02 16:36:08 +02:00
Mattia Bertorello
eb055cc4c0 Add user agent in the connection to api-builder.arduino.cc/builder/v1/boards/ 2019-04-02 15:32:37 +02:00
Martino Facchin
05de5c9593 Follow symlinks when saving sketch
Fixes #8535
2019-04-02 15:05:08 +02:00
Pieter12345
442007a926 Remove unused FileUtils methods
Remove unused FileUtils methods without obvious use case or for which a replacement exists in the Files or File class.
2019-03-26 18:46:09 +01:00
Pieter12345
4c2fca6457 Replace some FileUtils calls with direct methods
Not wrapping these calls in FileUtils methods makes the code cleaner and easier to understand (FileUtils is very poorly documented, whereas direct calls contain proper documentation).
2019-03-26 18:46:09 +01:00
Pieter12345
6d9dd975be Remove StringUtils class
The functionality in this class has been replaced with the Apache commons.lang3 dependency.
2019-03-26 18:46:09 +01:00
Pieter12345
09e466a4a2 Replace StringUtils.join() with library call
Use Apache commons.lang3 instead of own implementation.
2019-03-26 18:46:09 +01:00
Pieter12345
a08908a90f Replace StringUtils.stringContainsOneOf() with library call
Use Apache commons.lang3 instead of own implementation.
2019-03-26 18:46:09 +01:00
Pieter12345
e6e10cdeb9 Update commons-lang3 from 3.3.2 to 3.8.1
Updated due to new API methods than can be useful for this project.
The license remained the same.
2019-03-26 18:46:09 +01:00
Pieter12345
91c262dc0e Replace SSHUploader file filter
- The file names in FILES_NOT_TO_COPY are full names and not partial names, so the check should not check if a file name contains such a name, but rather whether a file name fully matches such a name.
- Replaced the FILES_NOT_TO_COPY by a HashSet since this provides O(1) lookups, rather than O(n) lookups where n is the size of the set.
2019-03-26 18:46:09 +01:00
Martino Facchin
f119590d84 Starting 1.8.10 2019-03-25 11:25:48 +01:00
Cristian Maglie
82a6a404c2 Update translations 2019-03-15 14:23:43 +01:00
Cristian Maglie
54ca2235cc pluggable discovery: Debugging messages under 'discovery.debug' preference 2019-03-15 14:15:50 +01:00
Martino Facchin
dd58a7254c Replace usages of jssc-2.8.0-arduino2.jar with arduino3 2019-03-11 17:05:06 +01:00
Martino Facchin
8ad6d0efcf Update aarch64 shared library in jssc
Fixes https://github.com/arduino/Arduino/issues/7302#issuecomment-422539496
2019-03-11 17:01:18 +01:00
Martino Facchin
d4bbf71b30 Match wildcard property "." with board fqbn/name 2019-03-07 14:11:06 +01:00
Martino Facchin
be1a8403f0 Add TargetBoard.getFQBN helper 2019-03-07 14:11:06 +01:00
Martino Facchin
feb863dfc9 PluggableDiscovery: allow patterns to contain runtime variables 2019-03-07 12:41:27 +01:00
Cristian Maglie
e1caaf1c45 Perform port selection after initializing packages
Fix #8400
2019-01-23 15:46:41 +01:00
Cristian Maglie
7bc086a301 PluggableDiscovery: correct synchronization on 'portList' access 2019-01-23 13:51:41 +01:00