mirror of
https://github.com/ethauvin/bld.git
synced 2025-04-25 16:27:11 -07:00
commit
8d707a75ae
1 changed files with 8 additions and 10 deletions
|
@ -57,18 +57,16 @@ public class RunOperation extends AbstractProcessOperation<RunOperation> {
|
|||
|
||||
// parse the run arguments if any
|
||||
var args = project.arguments();
|
||||
while (!args.isEmpty()) {
|
||||
if (!args.isEmpty()) {
|
||||
var arg = args.get(0);
|
||||
if (arg.startsWith("-")) {
|
||||
args.remove(0);
|
||||
if (arg.startsWith(ARGS_OPTION)) {
|
||||
args.remove(0);
|
||||
var runArgs = arg.substring(ARGS_OPTION.length());
|
||||
if (!runArgs.isBlank()) {
|
||||
runOptions_.addAll(0, Arrays.asList(runArgs.split(" ")));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return operation;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue