mirror of
https://github.com/jht5945/buildj.git
synced 2025-12-29 18:30:05 +08:00
add jdk path match verbose outputs
This commit is contained in:
@@ -109,6 +109,9 @@ pub fn get_local_java_home(version: &str) -> Option<String> {
|
|||||||
matched_path = p;
|
matched_path = p;
|
||||||
}
|
}
|
||||||
if matched_path != "" {
|
if matched_path != "" {
|
||||||
|
if *VERBOSE {
|
||||||
|
print_message(MessageType::DEBUG, &format!("Matched JDK path found: {}", matched_path));
|
||||||
|
}
|
||||||
if local_util::is_path_exists(matched_path, "Contents/Home") {
|
if local_util::is_path_exists(matched_path, "Contents/Home") {
|
||||||
return Some(format!("{}/{}", matched_path, "Contents/Home"));
|
return Some(format!("{}/{}", matched_path, "Contents/Home"));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user