Skip to content

Commit a77e37b

Browse files
committed
#102 Updating sample project to show how other databases can be created
1 parent 408c798 commit a77e37b

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

examples/sample-project/build.gradle

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,16 @@ ext {
155155
}
156156

157157
/*
158-
* ml-gradle does not blindly process every file in the ml-config/databases directory. It checks for specific files
159-
* for a content database, a schemas database, and a triggers database. There are specific commands for each file, and
160-
* each command provides a number of options for configuring the forests for a database. So to create another database,
161-
* you'll need the block below.
162-
*
163-
* This will be improved in ml-gradle 2.3.1. Supports exists for this in ml-app-deployer already via the
164-
* DeployOtherDatabasesCommand, it's just not part of mlDeploy yet.
158+
* Starting in ml-gradle 2.3.2, you can add as many JSON database file as you wish to the ml-config/databases
159+
* directory, and ml-gradle will process each of them. Prior to 2.3.2, if you want to create a database with a file
160+
* besides content-database.json, triggers-database.json, or schemas-database.json, you must also add a new instance
161+
* of DeployDatabaseCommand, as shown below.
165162
*/
166-
ext {
167-
def otherDbCommand = new com.marklogic.appdeployer.command.databases.DeployDatabaseCommand("other-database.json")
168-
mlAppDeployer.commands.add(otherDbCommand)
169-
mlDatabaseCommands.add(otherDbCommand)
170-
}
163+
//ext {
164+
// def otherDbCommand = new com.marklogic.appdeployer.command.databases.DeployDatabaseCommand("other-database.json")
165+
// mlAppDeployer.commands.add(otherDbCommand)
166+
// mlDatabaseCommands.add(otherDbCommand)
167+
//}
171168

172169

173170
/*

0 commit comments

Comments
 (0)