@@ -763,12 +763,10 @@ private void installStage(Profile installedProfile, Set<Feature> allBootFeatures
763
763
}
764
764
}
765
765
for (Conditional cond : feature .getConditional ()) {
766
- if (isConditionalMet (cond , installedFeatures )) {
767
- for (Bundle bundle : cond .getBundle ()) {
768
- if (!ignoreDependencyFlag || !bundle .isDependency ()) {
769
- installArtifact (downloader , bundle .getLocation ().trim ());
770
- }
771
- }
766
+ for (Bundle bundle : cond .getBundle ()) {
767
+ if (!ignoreDependencyFlag || !bundle .isDependency ()) {
768
+ installArtifact (downloader , bundle .getLocation ().trim ());
769
+ }
772
770
}
773
771
}
774
772
}
@@ -834,11 +832,9 @@ private Set<Feature> bootStage(Profile bootProfile, Profile startupEffective) th
834
832
}
835
833
}
836
834
for (Conditional cond : feature .getConditional ()) {
837
- if (isConditionalMet (cond , bootFeatures )) {
838
- for (Bundle bundle : cond .getBundle ()) {
839
- if (!ignoreDependencyFlag || !bundle .isDependency ()) {
840
- locations .add (bundle .getLocation ().trim ());
841
- }
835
+ for (Bundle bundle : cond .getBundle ()) {
836
+ if (!ignoreDependencyFlag || !bundle .isDependency ()) {
837
+ locations .add (bundle .getLocation ().trim ());
842
838
}
843
839
}
844
840
}
@@ -871,10 +867,8 @@ private Set<Feature> bootStage(Profile bootProfile, Profile startupEffective) th
871
867
installArtifact (downloader , configFile .getLocation ().trim ());
872
868
}
873
869
for (Conditional cond : feature .getConditional ()) {
874
- if (isConditionalMet (cond , bootFeatures )) {
875
- for (ConfigFile configFile : cond .getConfigfile ()) {
876
- installArtifact (downloader , configFile .getLocation ().trim ());
877
- }
870
+ for (ConfigFile configFile : cond .getConfigfile ()) {
871
+ installArtifact (downloader , configFile .getLocation ().trim ());
878
872
}
879
873
}
880
874
// Install libraries
@@ -945,17 +939,6 @@ private Set<Feature> bootStage(Profile bootProfile, Profile startupEffective) th
945
939
return allBootFeatures ;
946
940
}
947
941
948
- private boolean isConditionalMet (Conditional cond , Set <Feature > bootFeatures ) {
949
- for (String condition : cond .getCondition ()) {
950
- for (Feature feature : bootFeatures ) {
951
- if (feature .getName ().equals (condition )) {
952
- return true ;
953
- }
954
- }
955
- }
956
- return false ;
957
- }
958
-
959
942
private String getRepos (Features rep ) {
960
943
StringBuilder repos = new StringBuilder ();
961
944
for (String repo : new HashSet <>(rep .getRepository ())) {
0 commit comments