mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
Bug 480347 - Support utility folder for old Arduino libraries.
Change-Id: Ib25783b1d2b5a94757e3273ae0a2ada543e5c7e7
This commit is contained in:
parent
948d0d13eb
commit
79285aa3f0
1 changed files with 6 additions and 2 deletions
|
@ -193,8 +193,12 @@ public class ArduinoLibrary {
|
|||
if (srcPath.toFile().isDirectory()) {
|
||||
return Collections.singletonList(srcPath);
|
||||
} else {
|
||||
// TODO do I need the 'utility' directory?
|
||||
return Collections.singletonList(installPath);
|
||||
Path utilityPath = installPath.resolve("utility"); //$NON-NLS-1$
|
||||
if (utilityPath.toFile().isDirectory()) {
|
||||
return Arrays.asList(installPath, utilityPath);
|
||||
} else {
|
||||
return Collections.singletonList(installPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue