mirror of
https://github.com/arduino/Arduino.git
synced 2025-04-05 21:40:24 +02:00
Fixed ignoring of LIBRARY_INDEX_URL of system property
This commit is contained in:
parent
9411fa8c2b
commit
c7b412ca3f
@ -80,10 +80,15 @@ public class Constants {
|
|||||||
String externalLibraryIndexUrl = System.getProperty("LIBRARY_INDEX_URL");
|
String externalLibraryIndexUrl = System.getProperty("LIBRARY_INDEX_URL");
|
||||||
if (externalLibraryIndexUrl != null && !"".equals(externalLibraryIndexUrl)) {
|
if (externalLibraryIndexUrl != null && !"".equals(externalLibraryIndexUrl)) {
|
||||||
LIBRARY_INDEX_URL = externalLibraryIndexUrl;
|
LIBRARY_INDEX_URL = externalLibraryIndexUrl;
|
||||||
|
LIBRARY_INDEX_URL_GZ = "";
|
||||||
|
String externalLibraryIndexUrlGz = System.getProperty("LIBRARY_INDEX_URL_GZ");
|
||||||
|
if (externalLibraryIndexUrlGz != null && !"".equals(externalLibraryIndexUrlGz)) {
|
||||||
|
LIBRARY_INDEX_URL_GZ = externalLibraryIndexUrlGz;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
LIBRARY_INDEX_URL = "http://downloads.arduino.cc/libraries/library_index.json";
|
LIBRARY_INDEX_URL = "http://downloads.arduino.cc/libraries/library_index.json";
|
||||||
|
LIBRARY_INDEX_URL_GZ = "http://downloads.arduino.cc/libraries/library_index.json.gz";
|
||||||
}
|
}
|
||||||
LIBRARY_INDEX_URL_GZ = "http://downloads.arduino.cc/libraries/library_index.json.gz";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user