-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
Sorry, I missed this when I originally reviewed the changes to introduce the new core API.
The new maven-plugin-core API is missing the ability to say if I want the deployment to be initially disabled or enabled at deploy time.
For example, I see in DeploymentOperations.addDeployOperationStep:
op.get(ENABLE).set(true);
Just look at all the places where the ENABLE(D) flags are set in all the operations. These should be configurable.
For example, my temporary code has this (this is code that is going to be deleted because I'm just going to call the maven-plugin-core API, but it is missing something like this):
So I should be able to do something like:
Deployment deployment = Deployment.of(content, deploymentName)
.addServerGroups(serverGroups)
.setEnabled(false); // support this setter
Now when I call forceDeploy, or deploy, or whatever, it will either be enabled or disabled depending on that setting. The default should obviously be "true" if not specified.