This repository was archived by the owner on Sep 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
main/java/com/marklogic/appdeployer
test/java/com/marklogic/appdeployer Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11group =com.marklogic
22javadocsDir =../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
55mlJunitVersion =3.2.0
66
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 33import com .marklogic .client .DatabaseClient ;
44import com .marklogic .client .DatabaseClientFactory ;
55import com .marklogic .client .ext .SecurityContextType ;
6+ import com .marklogic .client .ext .modulesloader .impl .PropertiesModuleManager ;
67import com .marklogic .mgmt .util .SimplePropertySource ;
78import org .junit .Assert ;
89import 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 /**
You can’t perform that action at this time.
0 commit comments