Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 29df3c0

Browse files
committed
Merge branch 'dev'
2 parents 5fd91e0 + 20266e7 commit 29df3c0

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
group=com.marklogic
22
javadocsDir=../gh-pages-marklogic-java/javadocs
3-
version=3.3.0
4-
mlJavaclientUtilVersion=3.3.0
3+
version=3.3.1
4+
mlJavaclientUtilVersion=3.3.1
55
mlJunitVersion=3.1.0
66

src/main/java/com/marklogic/appdeployer/DefaultAppConfigFactory.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,13 @@ public AppConfig newAppConfig() {
514514

515515
prop = getProperty("mlModuleTimestampsPath");
516516
if (prop != null) {
517-
logger.info("Module timestamps path: " + prop);
518-
c.setModuleTimestampsPath(prop);
517+
if (prop.trim().length() == 0) {
518+
logger.info("Disabling use of module timestamps file");
519+
c.setModuleTimestampsPath(null);
520+
} else {
521+
logger.info("Module timestamps path: " + prop);
522+
c.setModuleTimestampsPath(prop);
523+
}
519524
}
520525

521526
prop = getProperty("mlModulesRegex");

src/test/java/com/marklogic/appdeployer/DefaultAppConfigFactoryTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ public void springStyleProperties() {
3333
assertEquals("springuser", config.getRestAdminUsername());
3434
}
3535

36+
@Test
37+
public void moduleTimestampsPath() {
38+
Properties p = new Properties();
39+
p.setProperty("mlModuleTimestampsPath", "");
40+
AppConfig config = new DefaultAppConfigFactory(new SimplePropertySource(p)).newAppConfig();
41+
assertNull(config.getModuleTimestampsPath());
42+
}
43+
3644
@Test
3745
public void unrecognizedProperties() {
3846
sut = new DefaultAppConfigFactory(new SimplePropertySource("foo.mlHost", "host", "foo.mlUsername", "user"));

0 commit comments

Comments
 (0)