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

Commit c28fa20

Browse files
committed
#395 moduleTimestampsPath now accounts for projectDir
1 parent be85172 commit c28fa20

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
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.16.3
4-
mlJavaclientUtilVersion=3.13.4
3+
version=3.17.0-develop
4+
mlJavaclientUtilVersion=3.14.0-develop
55
mlJunitVersion=3.2.0
66

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public class AppConfig {
124124
private boolean staticCheckAssets = false;
125125
private boolean staticCheckLibraryAssets = false;
126126
private boolean bulkLoadAssets = true;
127-
private String moduleTimestampsPath = PropertiesModuleManager.DEFAULT_FILE_PATH;
127+
private String moduleTimestampsPath;
128128
private boolean moduleTimestampsUseHost = true;
129129
private boolean deleteTestModules = false;
130130
private String deleteTestModulesPattern = "/test/**";
@@ -266,6 +266,9 @@ public AppConfig(File projectDir) {
266266

267267
configDirs = new ArrayList<>();
268268
configDirs.add(ConfigDir.withProjectDir(projectDir));
269+
270+
moduleTimestampsPath = projectDir != null ? new File(projectDir, PropertiesModuleManager.DEFAULT_FILE_PATH).getAbsolutePath()
271+
: PropertiesModuleManager.DEFAULT_FILE_PATH;
269272
}
270273

271274
public void populateCustomTokens(PropertiesSource propertiesSource) {

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.marklogic.client.DatabaseClient;
44
import com.marklogic.client.DatabaseClientFactory;
55
import com.marklogic.client.ext.SecurityContextType;
6+
import com.marklogic.client.ext.modulesloader.impl.PropertiesModuleManager;
67
import com.marklogic.mgmt.util.SimplePropertySource;
78
import org.junit.Assert;
89
import org.junit.Test;
@@ -46,6 +47,8 @@ public void withProjectDir() {
4647
assertEquals(projectPath + "/path1", appConfig.getConfigDirs().get(0).getBaseDir().getAbsolutePath());
4748
assertEquals(projectPath + "/path2", appConfig.getConfigDirs().get(1).getBaseDir().getAbsolutePath());
4849
assertEquals(projectPath + "/schemasPath", appConfig.getSchemaPaths().get(0));
50+
51+
assertEquals(projectPath + "/" + PropertiesModuleManager.DEFAULT_FILE_PATH, appConfig.getModuleTimestampsPath());
4952
}
5053

5154
/**

0 commit comments

Comments
 (0)