mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-05 08:05:24 +02:00
Bug 497442 Install libraries in versioned directories.
To be consistent with platforms and to avoid issues with deleting directories on Windows. Change-Id: I9284413e8d864bdd49b9f8a0b171bc2d5af719f1
This commit is contained in:
parent
efa5f6a75f
commit
f663382363
2 changed files with 2 additions and 1 deletions
|
@ -190,6 +190,7 @@ public class ArduinoLibrary {
|
|||
public Path getInstallPath() {
|
||||
return installPath == null
|
||||
? ArduinoPreferences.getArduinoHome().resolve("libraries").resolve(name.replaceAll("[ ()]", "_")) //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
|
||||
.resolve(version)
|
||||
: installPath;
|
||||
}
|
||||
|
||||
|
|
|
@ -379,7 +379,7 @@ public class ArduinoManager {
|
|||
Path librariesDir = ArduinoPreferences.getArduinoHome().resolve("libraries"); //$NON-NLS-1$
|
||||
if (Files.isDirectory(librariesDir)) {
|
||||
try {
|
||||
Files.find(librariesDir, 2,
|
||||
Files.find(librariesDir, 3,
|
||||
(path, attrs) -> path.getFileName().toString().equals("library.properties")) //$NON-NLS-1$
|
||||
.forEach(path -> {
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue