Skip to content

Commit 6e89607

Browse files
committed
Removed OBE example of creating another database
1 parent ffb2632 commit 6e89607

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

examples/sample-project/build.gradle

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -154,29 +154,6 @@ ext {
154154
//mlAppDeployer.commands.add(new com.marklogic.appdeployer.command.cpf.DeployDefaultPipelinesCommand())
155155
}
156156

157-
158-
/*
159-
* ml-gradle does not blindly process every file in the ml-config/databases directory. It checks for specific files
160-
* for a content database, a schemas database, and a triggers database. There are specific commands for each file, and
161-
* each command provides a number of options for configuring the forests for a database. One reason ml-gradle does not
162-
* blindly process every file (as opposed to doing so for every other ML resource) is that this approach would make it
163-
* very difficult to configure the forests for each database.
164-
*
165-
* So, if you want to create a database in addition to a content/schemas/triggers database, you'll need to add a new
166-
* command to do so, as shown here. Please see ml-app-deployer for more info on what you can customize on an instance
167-
* of DeployDatabaseCommand.
168-
*
169-
* Note also that mlDatabaseCommands is a property initialized by ml-gradle that contains a list of command objects. This
170-
* list is used when the "mlDeployDatabases" task is run, so it's a good idea to add a command for your custom database
171-
* to this list, in addition to adding it to mlAppDeployer.
172-
*/
173-
ext {
174-
def otherDbCommand = new com.marklogic.appdeployer.command.databases.DeployDatabaseCommand("other-database.json")
175-
mlAppDeployer.commands.add(otherDbCommand)
176-
mlDatabaseCommands.add(otherDbCommand)
177-
}
178-
179-
180157
/*
181158
* Example of a custom command, which in this case performs a merge on a database. The benefit of doing this in a
182159
* command (as opposed to a task) is that a command can be included in the mlDeploy and mlUndeploy tasks by adding it to

0 commit comments

Comments
 (0)