diff --git a/spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/service/impl/AppDeploymentRequestCreator.java b/spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/service/impl/AppDeploymentRequestCreator.java index 8f6cbe322d..0058384220 100644 --- a/spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/service/impl/AppDeploymentRequestCreator.java +++ b/spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/service/impl/AppDeploymentRequestCreator.java @@ -155,7 +155,7 @@ private void addDefaultDeployerProperties( Map 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; @@ -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);