Commit 6c016663 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish contribution

See gh-18711
parent 1fb904ac
...@@ -133,19 +133,20 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { ...@@ -133,19 +133,20 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
private Map<String, String> environmentVariables; private Map<String, String> environmentVariables;
/** /**
* Arguments that should be passed to the application. On command line use spaces to * Arguments that should be passed to the application.
* separate multiple arguments and make sure to wrap multiple values between quotes.
* @since 1.0.0 * @since 1.0.0
*/ */
@Parameter @Parameter
private String[] arguments; private String[] arguments;
/** /**
* Arguments from command line that should be passed to the application. * Arguments from the command line that should be passed to the application. Use
* @since 2.2.1 * spaces to separate multiple arguments and make sure to wrap multiple values between
* quotes. When specified, takes precedence over {@link #arguments}.
* @since 2.2.3
*/ */
@Parameter(property = "spring-boot.run.arguments", readonly = true) @Parameter(property = "spring-boot.run.arguments", readonly = true)
private String args; private String commandlineArguments;
/** /**
* The spring profiles to activate. Convenience shortcut of specifying the * The spring profiles to activate. Convenience shortcut of specifying the
...@@ -318,7 +319,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { ...@@ -318,7 +319,7 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
* @return a {@link RunArguments} defining the application arguments * @return a {@link RunArguments} defining the application arguments
*/ */
protected RunArguments resolveApplicationArguments() { protected RunArguments resolveApplicationArguments() {
RunArguments runArguments = (this.args != null) ? new RunArguments(this.args) RunArguments runArguments = (this.commandlineArguments != null) ? new RunArguments(this.commandlineArguments)
: new RunArguments(this.arguments); : new RunArguments(this.arguments);
addActiveProfileArgument(runArguments); addActiveProfileArgument(runArguments);
return runArguments; return runArguments;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment