mirror of
https://github.com/jht5945/buildj.git
synced 2025-12-27 17:20:06 +08:00
add jdk path match verbose outputs
This commit is contained in:
@@ -93,6 +93,9 @@ pub fn get_local_java_home(version: &str) -> Option<String> {
|
||||
Ok(dir_entry) => match dir_entry.path().to_str() {
|
||||
None => (),
|
||||
Some(p) => {
|
||||
if *VERBOSE {
|
||||
print_message(MessageType::DEBUG, &format!("Try match path: {}", p));
|
||||
}
|
||||
let mut path_name = p;
|
||||
if p.ends_with("/") {
|
||||
path_name = &path_name[..path_name.len() - 1]
|
||||
|
||||
Reference in New Issue
Block a user