1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-27 17:20:06 +08:00

add verbose outputs

This commit is contained in:
2019-08-10 10:30:22 +08:00
parent 141584063f
commit 6f06b9d109
2 changed files with 7 additions and 1 deletions

View File

@@ -152,7 +152,13 @@ fn main() {
do_with_buildin_args(&args);
return;
}
if *VERBOSE {
print_message(MessageType::DEBUG, &format!("Init home dir: {}", tool::LOCAL_BUILDER_HOME_BASE_DIR));
}
local_util::init_home_dir(tool::LOCAL_BUILDER_HOME_BASE_DIR);
if *VERBOSE {
print_message(MessageType::DEBUG, &format!("Init home dir: {}", jdk::LOCAL_JAVA_HOME_BASE_DIR));
}
local_util::init_home_dir(jdk::LOCAL_JAVA_HOME_BASE_DIR);
let build_json = match find_build_json() {

View File

@@ -85,7 +85,7 @@ pub fn get_local_builder_home_sub(builder_name: BuilderName, local_builder_home_
Some(p) => {
return Some(BuilderDesc{name: builder_name, home: p, bin: None});
},
};
}
}
pub fn get_local_builder_home_sub_first_sub_dir(local_builder_home_dir: &str) -> Option<String> {