With JOnAS 5, a new "development mode" has been introduced. When running in development mode, JOnAS automatically deploys applications as soon as they're uploaded and only undeploys them when removed.
This needs to be supported on CARGO's JOnAS 5 remote container:
- Before starting deploy, make sure deployment mode is false.
- After deploy, set it back to the way it was.
- Before starting undeploy, make sure deployment mode is false.
- If we were in development mode, delete after undeploying.
- After undeploy, set it back to the way it was.