Skip to content

Commit

Permalink
[issues-207] - Fix WildflyDeploymentApplicationConfiguration, which i…
Browse files Browse the repository at this point in the history
…s building Maven additional args wrongly in generateAdditionalMavenArgs
  • Loading branch information
fabiobrz committed Nov 25, 2024
1 parent c160b26 commit 2e1f196
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,22 @@ default String bomsEeServerVersionPropertyName() {
return WILDFLY_BOMS_EE_SERVER_VERSION;
}

/**
* This must match the property name in the pom.xml file used to set the "wildfly-galleon-pack" feature pack GAV
*
* @return property name in the pom.xml file used to set the feature pack GAV
*/
default String featurePackLocationPropertyName() {
return WILDFLY_FEATURE_PACK_LOCATION;
}

/**
* This must match the property name in the pom.xml file used to set the "wildfly-ee-galleon-pack" feature pack GAV
*
* @return property name in the pom.xml file used to set the feature pack GAV
*/
default String eeFeaturePackLocationPropertyName() {
return WILDFLY_FEATURE_PACK_LOCATION;
return WILDFLY_EE_FEATURE_PACK_LOCATION;
}

/**
Expand Down Expand Up @@ -206,7 +215,7 @@ default String generateAdditionalMavenArgs() {
: (" -D" + this.eeFeaturePackLocationPropertyName() + "="
+ this.eeFeaturePackLocation())))
+ ((Strings.isNullOrEmpty(this.featurePackLocation()) ? ""
: (" -D" + this.featurePackLocation() + "="
: (" -D" + this.featurePackLocationPropertyName() + "="
+ this.featurePackLocation())))
+ ((Strings.isNullOrEmpty(this.cloudFeaturePackLocation()) ? ""
: (" -D" + this.cloudFeaturePackLocationPropertyName() + "="
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
import org.jboss.intersmash.test.deployments.DeploymentsProvider;
import org.jboss.intersmash.test.deployments.TestDeploymentProperties;
import org.jboss.intersmash.test.deployments.WildflyDeploymentApplicationConfiguration;
import org.jboss.intersmash.testsuite.IntersmashTestsuiteProperties;
import org.jboss.intersmash.testsuite.junit5.categories.OpenShiftTest;
import org.jboss.intersmash.util.CommandLineBasedKeystoreGenerator;
import org.jboss.intersmash.util.openshift.WildflyOpenShiftUtils;
Expand Down

0 comments on commit 2e1f196

Please sign in to comment.