Fix springProfile with multi profiles separated by comma and whitespace
Previously springProfile supported multi profiles separated by comma but it doesn´t work if there are whitespaces. Now, springProfile will read values cleaning whitespaces. See gh-4445
This commit is contained in:
parent
6a32955cd4
commit
bd709f30c5
|
|
@ -67,8 +67,8 @@ class SpringProfileAction extends Action implements InPlayListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean acceptsProfiles(InterpretationContext ic, Attributes attributes) {
|
private boolean acceptsProfiles(InterpretationContext ic, Attributes attributes) {
|
||||||
String[] profileNames = StringUtils
|
String[] profileNames = StringUtils.trimArrayElements(StringUtils
|
||||||
.commaDelimitedListToStringArray(attributes.getValue(NAME_ATTRIBUTE));
|
.commaDelimitedListToStringArray(attributes.getValue(NAME_ATTRIBUTE)));
|
||||||
if (profileNames.length != 0) {
|
if (profileNames.length != 0) {
|
||||||
for (String profileName : profileNames) {
|
for (String profileName : profileNames) {
|
||||||
OptionHelper.substVars(profileName, ic, this.context);
|
OptionHelper.substVars(profileName, ic, this.context);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue