Skip to content

Commit 1b283e1

Browse files
committed
moving ./config to ./marklogic-config
fixes issue #239
1 parent 103dd82 commit 1b283e1

File tree

7 files changed

+19
-14
lines changed

7 files changed

+19
-14
lines changed

marklogic-data-hub/src/main/java/com/marklogic/hub/DataHub.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public void updateAppConfig(AppConfig config) {
226226
forestCounts.put(hubConfig.modulesDbName, 1);
227227
config.setForestCounts(forestCounts);
228228

229-
ConfigDir configDir = new ConfigDir(Paths.get(hubConfig.projectDir, "config").toFile());
229+
ConfigDir configDir = new ConfigDir(Paths.get(hubConfig.projectDir, "marklogic-config").toFile());
230230
config.setConfigDir(configDir);
231231

232232
Map<String, String> customTokens = config.getCustomTokens();
@@ -393,6 +393,7 @@ private List<Command> getCommands(AppConfig config) {
393393

394394
/**
395395
* Installs the data hub configuration and server-side modules into MarkLogic
396+
* @param listener - the callback method to receive status updates
396397
*/
397398
public void install(StatusListener listener) {
398399
initProject();
@@ -407,6 +408,7 @@ public void install(StatusListener listener) {
407408

408409
/**
409410
* Uninstalls the data hub configuration and server-side modules from MarkLogic
411+
* @param listener - the callback method to receive status updates
410412
*/
411413
public void uninstall(StatusListener listener) {
412414
LOGGER.debug("Uninstalling the Data Hub from MarkLogic");

marklogic-data-hub/src/main/java/com/marklogic/hub/FlowManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ private JobParameters buildJobParameters(Flow flow, int batchSize) {
160160
* Runs a given flow
161161
* @param flow - the flow to run
162162
* @param batchSize - the size to use for batching transactions
163+
* @param statusListener - the callback to receive job status updates
163164
* @return a JobExecution instance
164165
*/
165166
public JobExecution runFlow(Flow flow, int batchSize, JobStatusListener statusListener) {

marklogic-data-hub/src/main/java/com/marklogic/hub/HubProject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public HubProject(HubConfig config) {
2929
this.hubConfig = config;
3030
this.projectDirStr = config.projectDir;
3131
this.projectDir = Paths.get(this.projectDirStr);
32-
this.configDir = Paths.get(this.projectDirStr, "config");
32+
this.configDir = Paths.get(this.projectDirStr, "marklogic-config");
3333
this.pluginsDir = Paths.get(this.projectDirStr, "plugins");
3434

3535
customTokens.put("%%mlHost%%", hubConfig.host);

marklogic-data-hub/src/main/java/com/marklogic/spring/batch/hub/AbstractMarkLogicBatchConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public abstract class AbstractMarkLogicBatchConfig extends LoggingObject impleme
4545
/**
4646
* Convenience method for retrieving the "main" DatabaseClient instance.
4747
*
48-
* @return
48+
* @return a database client
4949
*/
5050
protected DatabaseClient getDatabaseClient() {
5151
return databaseClientProvider.getDatabaseClient();

marklogic-data-hub/src/test/java/com/marklogic/hub/HubProjectTest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ public void testInit() throws IOException {
4646
HubProject hp = new HubProject(config);
4747
hp.init();
4848

49-
assertTrue(new File(projectPath, "config/servers/staging-server.json").exists());
50-
assertTrue(new File(projectPath, "config/servers/final-server.json").exists());
51-
assertTrue(new File(projectPath, "config/servers/trace-server.json").exists());
52-
53-
assertTrue(new File(projectPath, "config/databases/staging-database.json").exists());
54-
assertTrue(new File(projectPath, "config/databases/final-database.json").exists());
55-
assertTrue(new File(projectPath, "config/databases/trace-database.json").exists());
56-
assertTrue(new File(projectPath, "config/databases/modules-database.json").exists());
57-
assertTrue(new File(projectPath, "config/databases/schemas-database.json").exists());
58-
assertTrue(new File(projectPath, "config/databases/triggers-database.json").exists());
49+
assertTrue(new File(projectPath, "marklogic-config/servers/staging-server.json").exists());
50+
assertTrue(new File(projectPath, "marklogic-config/servers/final-server.json").exists());
51+
assertTrue(new File(projectPath, "marklogic-config/servers/trace-server.json").exists());
52+
53+
assertTrue(new File(projectPath, "marklogic-config/databases/staging-database.json").exists());
54+
assertTrue(new File(projectPath, "marklogic-config/databases/final-database.json").exists());
55+
assertTrue(new File(projectPath, "marklogic-config/databases/trace-database.json").exists());
56+
assertTrue(new File(projectPath, "marklogic-config/databases/modules-database.json").exists());
57+
assertTrue(new File(projectPath, "marklogic-config/databases/schemas-database.json").exists());
58+
assertTrue(new File(projectPath, "marklogic-config/databases/triggers-database.json").exists());
5959

6060
File buildGradle = new File(projectPath, "build.gradle");
6161
assertTrue(buildGradle.exists());

quick-start/src/main/java/com/marklogic/quickstart/model/Project.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public Project(int id, String path) {
2626
public boolean isInitialized() {
2727
File buildGradle = new File(this.path, "build.gradle");
2828
File gradleProperties = new File(this.path, "gradle.properties");
29-
File configDir = new File(this.path, "config");
29+
File configDir = new File(this.path, "marklogic-config");
3030
File databasesDir = new File(configDir, "databases");
3131
File serversDir = new File(configDir, "servers");
3232

quick-start/src/main/java/com/marklogic/quickstart/service/FlowManagerService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ public List<FlowModel> getFlows(String projectDir, String entityName, FlowType f
6060
Path flowPath = entityPath.resolve(flowType.toString());
6161
List<String> flowNames = FileUtil.listDirectFolders(flowPath.toFile());
6262
for (String flowName : flowNames) {
63+
if (flowName.equals("REST")) continue;
64+
6365
Flow f = AbstractFlow.loadFromFile(flowPath.resolve(flowName).resolve(flowName + ".xml").toFile());
6466
FlowModel flow = new FlowModel(entityName, flowName);
6567
if (f != null) {

0 commit comments

Comments
 (0)