Skip to content

Commit

Permalink
#227: Fix paths problem (IDEasy could not set the tool path on first …
Browse files Browse the repository at this point in the history
…installation) (#228)
  • Loading branch information
MustaphaOuchen authored Feb 27, 2024
1 parent 137d923 commit 9d89b23
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ public Path findBinary(Path toolPath) {
String fileName = toolPath.getFileName().toString();

if (parent == null) {

for (Path path : tool2pathMap.values()) {
Path binaryPath = findBinaryInOrder(path, fileName);
if (binaryPath != null) {
return binaryPath;
}
}

for (Path path : this.paths) {
Path binaryPath = findBinaryInOrder(path, fileName);
if (binaryPath != null) {
Expand Down

0 comments on commit 9d89b23

Please sign in to comment.