|
@@ -151,9 +151,9 @@ public class ConfigLoader {
|
151
|
151
|
|
152
|
152
|
if (profile == null || profile.length() == 0) {
|
153
|
153
|
profile = getActiveProfile(defaultProperties);
|
154
|
|
- if (configListener != null) {
|
155
|
|
- configListener.activeProfile(profile);
|
156
|
|
- }
|
|
154
|
+ }
|
|
155
|
+ if (configListener != null) {
|
|
156
|
+ configListener.activeProfile(profile);
|
157
|
157
|
}
|
158
|
158
|
LinkedHashMap map = selectConfig(matchProtocol, DEFAULT_APPLICATION + "-" + profile);
|
159
|
159
|
if (map != null) {
|
|
@@ -359,7 +359,7 @@ public class ConfigLoader {
|
359
|
359
|
for (String arg : args) {
|
360
|
360
|
arg = arg.trim();
|
361
|
361
|
if (arg.startsWith("--profile=")) {
|
362
|
|
- return arg.substring(10);
|
|
362
|
+ return arg.substring("--profile=".length());
|
363
|
363
|
}
|
364
|
364
|
}
|
365
|
365
|
}
|