1
0
Fork 0
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:
Doug Schaefer 2015-10-21 20:38:51 -04:00
parent 948d0d13eb
commit 79285aa3f0

View file

@ -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);
}
}
}