|
|
|
@ -277,12 +277,14 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
|
|
|
|
|
private void addArgs(List<String> args) {
|
|
|
|
|
RunArguments applicationArguments = resolveApplicationArguments();
|
|
|
|
|
Collections.addAll(args, applicationArguments.asArray());
|
|
|
|
|
logArguments("Application argument(s): ", applicationArguments.asArray());
|
|
|
|
|
String suffix = (applicationArguments.asArray().length == 1) ? "" : "s";
|
|
|
|
|
logArguments("Application argument" + suffix + ": ", applicationArguments.asArray());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Map<String, String> determineEnvironmentVariables() {
|
|
|
|
|
EnvVariables envVariables = resolveEnvVariables();
|
|
|
|
|
logArguments("Environment variable(s): ", envVariables.asArray());
|
|
|
|
|
String suffix = (envVariables.asArray().length == 1) ? "" : "s";
|
|
|
|
|
logArguments("Environment variable" + suffix + ": ", envVariables.asArray());
|
|
|
|
|
return envVariables.asMap();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -307,7 +309,8 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
|
|
|
|
|
private void addJvmArgs(List<String> args) {
|
|
|
|
|
RunArguments jvmArguments = resolveJvmArguments();
|
|
|
|
|
Collections.addAll(args, jvmArguments.asArray());
|
|
|
|
|
logArguments("JVM argument(s): ", jvmArguments.asArray());
|
|
|
|
|
String suffix = (jvmArguments.asArray().length == 1) ? "" : "s";
|
|
|
|
|
logArguments("JVM argument" + suffix + ": ", jvmArguments.asArray());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void addAgents(List<String> args) {
|
|
|
|
@ -334,7 +337,8 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
arguments.getArgs().addFirst(arg.toString());
|
|
|
|
|
logArguments("Active profile(s): ", this.profiles);
|
|
|
|
|
String suffix = (this.profiles.length == 1) ? "" : "s";
|
|
|
|
|
logArguments("Active profile" + suffix + ": ", this.profiles);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|