Skip to content

Commit 9d89b23

Browse files
#227: Fix paths problem (IDEasy could not set the tool path on first installation) (#228)
1 parent 137d923 commit 9d89b23

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cli/src/main/java/com/devonfw/tools/ide/common/SystemPath.java

+8
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ public Path findBinary(Path toolPath) {
139139
String fileName = toolPath.getFileName().toString();
140140

141141
if (parent == null) {
142+
143+
for (Path path : tool2pathMap.values()) {
144+
Path binaryPath = findBinaryInOrder(path, fileName);
145+
if (binaryPath != null) {
146+
return binaryPath;
147+
}
148+
}
149+
142150
for (Path path : this.paths) {
143151
Path binaryPath = findBinaryInOrder(path, fileName);
144152
if (binaryPath != null) {

0 commit comments

Comments
 (0)