Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
6c016663
Commit
6c016663
authored
Dec 26, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish contribution
See gh-18711
parent
1fb904ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
AbstractRunMojo.java
.../java/org/springframework/boot/maven/AbstractRunMojo.java
+7
-6
No files found.
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AbstractRunMojo.java
View file @
6c016663
...
@@ -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
arg
s
;
private
String
commandlineArgument
s
;
/**
/**
* 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
.
arg
s
)
RunArguments
runArguments
=
(
this
.
commandlineArguments
!=
null
)
?
new
RunArguments
(
this
.
commandlineArgument
s
)
:
new
RunArguments
(
this
.
arguments
);
:
new
RunArguments
(
this
.
arguments
);
addActiveProfileArgument
(
runArguments
);
addActiveProfileArgument
(
runArguments
);
return
runArguments
;
return
runArguments
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment