Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Ski committed Jul 8, 2024
1 parent aef967f commit f519e99
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ public static File getToolFile (String toolPathOrName, RuntimeEnv env, String op

File absoluteFile = new File(toolPathOrName);
if (absoluteFile.exists() && absoluteFile.isFile()) {
logger.warn("Searching for {} as absolute file", toolPathOrName);
return absoluteFile;
}

Set<String> paths = env.getPaths();
for (String path : paths) {
File file = new File(path, toolPathOrName);
logger.warn("Searching in path {} for tool {}, total path {}", path, toolPathOrName, file);
if (file.exists() && file.isFile()) {
return file;
}
Expand Down

0 comments on commit f519e99

Please sign in to comment.