1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Bug 553730 - Fix for findCommand() to handle directories

Change-Id: I2f0c833ca6a1493915db1e30b330dffc9ef3d590
Signed-off-by: Kondal Kolipaka <kondal.kolipaka@gmail.com>
This commit is contained in:
Kondal Kolipaka 2019-12-04 11:48:44 +05:30 committed by Jonah Graham
parent 4b7b3c5e79
commit 0848460687

View file

@ -448,7 +448,7 @@ public abstract class CBuildConfiguration extends PlatformObject implements ICBu
String[] path = pathStr.split(File.pathSeparator);
for (String dir : path) {
Path commandPath = Paths.get(dir, command);
if (Files.exists(commandPath)) {
if (Files.exists(commandPath) && Files.isRegularFile(commandPath)) {
return commandPath;
} else {
if (Platform.getOS().equals(Platform.OS_WIN32)