mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
trim profiles name
This commit is contained in:
+4
-1
@@ -114,7 +114,10 @@ public class MavenProjectBuilder extends ProjectImportBuilder<MavenProject> {
|
||||
String profilesList = System.getProperty("idea.maven.import.enabled.profiles");
|
||||
if (profilesList != null) {
|
||||
Set<String> selectedProfilesSet = new LinkedHashSet<String>(selectedProfiles);
|
||||
selectedProfilesSet.addAll(StringUtil.split(profilesList, ","));
|
||||
for (String profile : StringUtil.split(profilesList, ",")) {
|
||||
selectedProfilesSet.add(profile.trim());
|
||||
}
|
||||
|
||||
selectedProfiles = new ArrayList<String>(selectedProfilesSet);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user