1
0
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:
2019-08-09 01:29:41 +08:00
parent b3a208d4ac
commit 7642e3e343

View File

@@ -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]