diff --git a/monticore-generator/src/main/java/de/monticore/MontiCoreScript.java b/monticore-generator/src/main/java/de/monticore/MontiCoreScript.java index a326c8f56b..a1ecf4385e 100644 --- a/monticore-generator/src/main/java/de/monticore/MontiCoreScript.java +++ b/monticore-generator/src/main/java/de/monticore/MontiCoreScript.java @@ -1351,7 +1351,7 @@ public void generateDSTLanguage(ASTMCGrammar astGrammar, File grammarOut, MCPath dstlgenUtil.generateDSTL(astGrammar, gext, dstlGlex, grammarOut); } - public void generateDSTInfrastructure(ASTMCGrammar astTRGrammar, File out, MCPath modelPathHC) { + public void generateDSTInfrastructure(ASTMCGrammar astTRGrammar, File out, MCPath codePathHC) { if(!astTRGrammar.getSymbol().getName().endsWith("TR") || astTRGrammar.getPackageList().stream().noneMatch(p -> p.equals("tr"))) { Log.error("0xA1018 Unable to generate DST infrastructure on non-TR Grammar:" + astTRGrammar.getSymbol().getFullName()); return; @@ -1373,13 +1373,13 @@ public void generateDSTInfrastructure(ASTMCGrammar astTRGrammar, File out, MCPat // No D2, D3: TR Grammar is already present (see generateDSTLanguage) // D4 Generate context conditions - dstlgenUtil.generateDSTLCoCos(astGrammar, dstlGenerator, modelPathHC, dstlGlex); + dstlgenUtil.generateDSTLCoCos(astGrammar, dstlGenerator, codePathHC, dstlGlex); // D5 Generate DSTL to ODRule translator - dstlgenUtil.generateTranslator(astGrammar, dstlGenerator, modelPathHC); + dstlgenUtil.generateTranslator(astGrammar, dstlGenerator, codePathHC); // D6 Generate TFGenTool class - dstlgenUtil.generateTFGenToolClass(astGrammar, dstlGenerator, modelPathHC); + dstlgenUtil.generateTFGenToolClass(astGrammar, dstlGenerator, codePathHC); } /** diff --git a/monticore-generator/src/main/resources/de/monticore/monticore_emf.groovy b/monticore-generator/src/main/resources/de/monticore/monticore_emf.groovy index 5a0c4c4115..eb04e47bd8 100644 --- a/monticore-generator/src/main/resources/de/monticore/monticore_emf.groovy +++ b/monticore-generator/src/main/resources/de/monticore/monticore_emf.groovy @@ -96,7 +96,7 @@ while (grammarIterator.hasNext()) { if (genDST) { // Generate infrastructure for domain-specific transformation IFF this task is run on a TR grammar - generateDSTInfrastructure(astGrammar, out, modelPathHC) + generateDSTInfrastructure(astGrammar, out, handcodedPath) } else { // Generate a DSTL (ending in TR.mc4) generateDSTLanguage(astGrammar, out, modelPathHC) @@ -119,4 +119,4 @@ while (grammarIterator.hasNext()) { if (toolName.isPresent()) { generateLaunchScripts(glex, out, toolName.get()) -} \ No newline at end of file +} diff --git a/monticore-generator/src/main/resources/de/monticore/monticore_noreports.groovy b/monticore-generator/src/main/resources/de/monticore/monticore_noreports.groovy index d60e48bef5..ad70c10312 100644 --- a/monticore-generator/src/main/resources/de/monticore/monticore_noreports.groovy +++ b/monticore-generator/src/main/resources/de/monticore/monticore_noreports.groovy @@ -99,7 +99,7 @@ while (grammarIterator.hasNext()) { if (genDST) { // Generate infrastructure for domain-specific transformation IFF this task is run on a TR grammar - generateDSTInfrastructure(astGrammar, out, modelPathHC) + generateDSTInfrastructure(astGrammar, out, handcodedPath) } else { // Generate a DSTL (ending in TR.mc4) generateDSTLanguage(astGrammar, out, modelPathHC) @@ -124,4 +124,4 @@ if (toolName.isPresent()) { generateLaunchScripts(glex, out, toolName.get()) } -reportManagerFactory.close() \ No newline at end of file +reportManagerFactory.close() diff --git a/monticore-generator/src/main/resources/de/monticore/monticore_standard.groovy b/monticore-generator/src/main/resources/de/monticore/monticore_standard.groovy index 4f9e4c28bc..d027d4315e 100644 --- a/monticore-generator/src/main/resources/de/monticore/monticore_standard.groovy +++ b/monticore-generator/src/main/resources/de/monticore/monticore_standard.groovy @@ -103,7 +103,7 @@ while (grammarIterator.hasNext()) { if (genDST) { // Generate infrastructure for domain-specific transformation IFF this task is run on a TR grammar - generateDSTInfrastructure(astGrammar, out, modelPathHC) + generateDSTInfrastructure(astGrammar, out, handcodedPath) } else { // Generate a DSTL (ending in TR.mc4) generateDSTLanguage(astGrammar, out, modelPathHC) @@ -127,4 +127,4 @@ while (grammarIterator.hasNext()) { if (toolName.isPresent()) { generateLaunchScripts(glex, out, toolName.get()) -} \ No newline at end of file +}