mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-11 11:05:24 +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:
parent
4b7b3c5e79
commit
0848460687
1 changed files with 1 additions and 1 deletions
|
@ -448,7 +448,7 @@ public abstract class CBuildConfiguration extends PlatformObject implements ICBu
|
||||||
String[] path = pathStr.split(File.pathSeparator);
|
String[] path = pathStr.split(File.pathSeparator);
|
||||||
for (String dir : path) {
|
for (String dir : path) {
|
||||||
Path commandPath = Paths.get(dir, command);
|
Path commandPath = Paths.get(dir, command);
|
||||||
if (Files.exists(commandPath)) {
|
if (Files.exists(commandPath) && Files.isRegularFile(commandPath)) {
|
||||||
return commandPath;
|
return commandPath;
|
||||||
} else {
|
} else {
|
||||||
if (Platform.getOS().equals(Platform.OS_WIN32)
|
if (Platform.getOS().equals(Platform.OS_WIN32)
|
||||||
|
|
Loading…
Add table
Reference in a new issue