mirror of
https://github.com/jht5945/buildj.git
synced 2025-12-29 10:20:04 +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() {
|
Ok(dir_entry) => match dir_entry.path().to_str() {
|
||||||
None => (),
|
None => (),
|
||||||
Some(p) => {
|
Some(p) => {
|
||||||
|
if *VERBOSE {
|
||||||
|
print_message(MessageType::DEBUG, &format!("Try match path: {}", p));
|
||||||
|
}
|
||||||
let mut path_name = p;
|
let mut path_name = p;
|
||||||
if p.ends_with("/") {
|
if p.ends_with("/") {
|
||||||
path_name = &path_name[..path_name.len() - 1]
|
path_name = &path_name[..path_name.len() - 1]
|
||||||
|
|||||||
Reference in New Issue
Block a user