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

View file

@ -193,10 +193,14 @@ public class ArduinoLibrary {
if (srcPath.toFile().isDirectory()) {
return Collections.singletonList(srcPath);
} else {
// TODO do I need the 'utility' directory?
Path utilityPath = installPath.resolve("utility"); //$NON-NLS-1$
if (utilityPath.toFile().isDirectory()) {
return Arrays.asList(installPath, utilityPath);
} else {
return Collections.singletonList(installPath);
}
}
}
private void getSources(Collection<String> sources, Path dir, boolean recurse) {
for (File file : dir.toFile().listFiles()) {