Skip to content

Commit 52a9088

Browse files
committed
#570 Fixed bug in mlPreviewDeploy
setDeployRolesInTwoPhases no longer exists
1 parent a0c9df8 commit 52a9088

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/main/groovy/com/marklogic/gradle/task/PreviewDeployTask.groovy

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ class PreviewDeployTask extends DeployAppTask {
5555
for (Command c : simpleAppDeployer.getCommands()) {
5656
if (c instanceof LoadSchemasCommand || c instanceof LoadModulesCommand) {
5757
// Don't include these; no need to load schemas or modules during a preview
58-
}
59-
// Loading roles in two phases breaks the preview feature, so it's disabled
60-
else if (c instanceof DeployRolesCommand) {
61-
DeployRolesCommand deployRolesCommand = (DeployRolesCommand) c
62-
deployRolesCommand.setDeployRolesInTwoPhases(false)
63-
newCommands.add(c)
6458
} else {
6559
newCommands.add(c)
6660
}

0 commit comments

Comments
 (0)