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

Commit 59a4a0b

Browse files
committed
Entity services TDE file now generated in correct directory
Fix for ml-gradle #230
1 parent f62448b commit 59a4a0b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/com/marklogic/appdeployer/command/es/GenerateModelArtifactsCommand.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ protected void generateExtractionTemplate(AppConfig appConfig, GeneratedCode cod
226226
if (template != null) {
227227
File dir = new File(appConfig.getSchemasPath());
228228
dir.mkdirs();
229+
dir = new File(dir, "tde");
230+
dir.mkdirs();
229231
File out = new File(dir, code.getTitle() + "-" + code.getVersion() + ".tdex");
230232
String logMessage = "Wrote extraction template to: ";
231233
if (out.exists()) {

src/test/java/com/marklogic/appdeployer/command/es/GenerateModelArtifactsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void test() {
4242
assertTrue(new File(projectPath, "src/main/ml-modules/ext/entity-services/Race-0.0.1.xqy").exists());
4343
assertTrue(new File(projectPath, "src/main/ml-modules/options/Race.xml").exists());
4444
assertTrue(new File(projectPath, "src/main/ml-schemas/Race-0.0.1.xsd").exists());
45-
assertTrue(new File(projectPath, "src/main/ml-schemas/Race-0.0.1.tdex").exists());
45+
assertTrue(new File(projectPath, "src/main/ml-schemas/tde/Race-0.0.1.tdex").exists());
4646
assertTrue(new File(projectPath, "src/main/ml-config/databases/content-database.json").exists());
4747
assertTrue("A schemas db file needs to be created since the ES content-database.json file refers to one",
4848
new File(projectPath, "src/main/ml-config/databases/schemas-database.json").exists());

0 commit comments

Comments
 (0)