Skip to content

Commit

Permalink
#198 Now supporting mlTriggersDatabaseName
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrudin committed Nov 13, 2017
1 parent 57da88a commit c1bdb6e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
group=com.marklogic
javadocsDir=../gh-pages-marklogic-java/javadocs
version=3.1-alpha4
mlJavaclientUtilVersion=3.1-alpha4
mlJavaclientUtilVersion=3.1-alpha6
mlJunitVersion=3.1-alpha1

Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ public AppConfig newAppConfig() {
c.setSchemasDatabaseName(prop);
}

prop = getProperty("mlTriggersDatabaseName");
if (prop != null) {
logger.info("Triggers database name: " + prop);
c.setTriggersDatabaseName(prop);
}

/**
* Defines the MarkLogic host that requests should be sent to. Defaults to localhost.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public void allProperties() {
p.setProperty("mlContentDatabaseName", "my-content-db");
p.setProperty("mlModulesDatabaseName", "my-modules");
p.setProperty("mlSchemasDatabaseName", "my-schemas-db");
p.setProperty("mlTriggersDatabaseName", "my-triggers-db");
p.setProperty("mlSchemasPath", "/my/schemas");
p.setProperty("mlDeleteForests", "false");
p.setProperty("mlDeleteReplicas", "false");
Expand Down Expand Up @@ -186,6 +187,7 @@ public void allProperties() {
assertEquals("my-content-db", config.getContentDatabaseName());
assertEquals("my-modules", config.getModulesDatabaseName());
assertEquals("my-schemas-db", config.getSchemasDatabaseName());
assertEquals("my-triggers-db", config.getTriggersDatabaseName());
assertEquals("/my/schemas", config.getSchemasPath());
assertFalse(config.isDeleteForests());
assertFalse(config.isDeleteReplicas());
Expand Down

0 comments on commit c1bdb6e

Please sign in to comment.