Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#227: Fix paths problem (IDEasy could not set the tool path on first installation) #228

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -67,7 +67,8 @@ public SystemPath(String envPath, Path softwarePath, char pathSeparator, IdeCont
} else {
Path duplicate = this.tool2pathMap.putIfAbsent(tool, path);
if (duplicate != null) {
context.warning("Duplicated tool path for tool: {} at path: {} with duplicated path: {}.", tool, path, duplicate);
context.warning("Duplicated tool path for tool: {} at path: {} with duplicated path: {}.", tool, path,
duplicate);
}
}
}
@@ -167,11 +168,12 @@ public Path getPath(String tool) {

/**
* @param tool the name of the tool.
* @param path the new {@link #getPath(String) tool bin path}.
* @param path the new {@link #getPath(String) tool bin path} and {@link #paths}.
*/
public void setPath(String tool, Path path) {

this.tool2pathMap.put(tool, path);
this.paths.add(0, path);
}

@Override