Skip to content

Commit

Permalink
Use deployer platform type and not task platform type for stream apps (
Browse files Browse the repository at this point in the history
  • Loading branch information
cppwfs authored Oct 11, 2023
1 parent f33b972 commit 87c2d63
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private void addDefaultDeployerProperties(
Map<String, String> deploymentProperties
) {
switch (platformType) {
case TaskPlatformFactory.LOCAL_PLATFORM_TYPE: {
case "local": {
String javaHome = propertyResolver.getProperty("spring.cloud.dataflow.defaults.boot" + bootVersion + ".local.javaHomePath");
if (StringUtils.hasText(javaHome)) {
String property = "spring.cloud.deployer.local.javaHomePath." + bootVersion;
Expand All @@ -164,7 +164,7 @@ private void addDefaultDeployerProperties(
}
break;
}
case TaskPlatformFactory.CLOUDFOUNDRY_PLATFORM_TYPE: {
case "cloudfoundry": {
String buildpack = propertyResolver.getProperty("spring.cloud.dataflow.defaults.boot" + bootVersion + ".cloudfoundry.buildpack");
if (StringUtils.hasText(buildpack)) {
deploymentProperties.put("spring.cloud.deployer.cloudfoundry.buildpack", buildpack);
Expand Down

0 comments on commit 87c2d63

Please sign in to comment.