Skip to content

issue in ApplicationManifestUtils.write method (partial solution only given) #911

@parasuram-tanguturu

Description

@parasuram-tanguturu

ApplicationManifestUtils.write(OutputStream out, List<ApplicationManifest> applicationManifests) 1.giving manifest in which memory does not have any unit of measurement.like M, MB, G, or GB.
2.path in output manifest is AbsolutePath .(expected is whatever available in old manifest).

i used the following manifest to ApplicationManifestUtils.read:

---
applications:
- name: apicomp
  memory: 1024M
  buildpack: java_buildpack
  instances: 1
  path: /Backend/demo-0.0.1-SNAPSHOT.jar
  random-route: true 
  services:
    - autodeployinst  
- name: uicomp
  memory: 1024M
  buildpack: staticfile_buildpack
  instances: 1
  path: /UI_Codes/dist/
  random-route: true 

then used
ApplicationManifestUtils.write to modify appName and got manifest output as:

---
applications:
- buildpack: java_buildpack
  instances: 1
  memory: 1024
  name: apicomp-green
  path: C:\Backend\demo-0.0.1-SNAPSHOT.jar
  random-route: true
  services:
  - autodeployinst
- buildpack: staticfile_buildpack
  instances: 1
  memory: 1024
  name: uicomp-green
  path: C:\UI_Codes\dist
  random-route: true

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions