Skip to content

Push app using path Directory #723

@ngocvanho

Description

@ngocvanho

Hi All,
I was pushed application with path is a Directory but when i was executed display error:
Exception in thread "main" java.lang.UnsupportedOperationException
Could you let me know cloudfoundry-operation version 2.8.0.RELEASE can push app with path is a Directory?
Below my code:

pushAppRequest = PushApplicationRequest.builder()
                    .application(new ClassPathResource("/helloworld").getFile().toPath())
                    .name("helloworld")
                    .buildpack("staticfile_buildpack')
                    .instances(1)
                    .memory(64)
                    .stagingTimeout(Duration.ofMinutes(2))
                    .startupTimeout(Duration.ofMinutes(2)).build();
this.cloudFoundryOperations.applications().push(pushAppRequest)

Thanks,
Van

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions