Skip to content

Commit

Permalink
#102 Updating sample project to show how other databases can be created
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrudin committed Aug 14, 2016
1 parent 408c798 commit a77e37b
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions examples/sample-project/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -155,19 +155,16 @@ ext {
}

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


/*
Expand Down

0 comments on commit a77e37b

Please sign in to comment.