1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-29 10:20:04 +08:00
This commit is contained in:
2020-05-02 14:51:59 +08:00
parent 0667b3d481
commit dc116799e0
5 changed files with 25 additions and 11 deletions

View File

@@ -22,6 +22,7 @@ use std::{
};
use rust_util::{
iff,
util_msg::{
print_message,
MessageType,
@@ -136,7 +137,7 @@ fn do_with_buildin_arg_builder(first_arg: &str, args: &[String], builder_name: &
let mut cmd = Command::new(builder_desc.get_builder_bin());
cmd.envs(&new_env);
let from_index = if has_java { 3 } else { 2 };
let from_index = iff!(has_java, 3, 2);
for arg in args.iter().skip(from_index) {
cmd.arg(&arg);
}