mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +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()) {
|
if (srcPath.toFile().isDirectory()) {
|
||||||
return Collections.singletonList(srcPath);
|
return Collections.singletonList(srcPath);
|
||||||
} else {
|
} else {
|
||||||
// TODO do I need the 'utility' directory?
|
Path utilityPath = installPath.resolve("utility"); //$NON-NLS-1$
|
||||||
return Collections.singletonList(installPath);
|
if (utilityPath.toFile().isDirectory()) {
|
||||||
|
return Arrays.asList(installPath, utilityPath);
|
||||||
|
} else {
|
||||||
|
return Collections.singletonList(installPath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue