From 230ef54cbf862eb625735059f4f51532804dcc15 Mon Sep 17 00:00:00 2001 From: Niko Stotz Date: Thu, 24 Oct 2024 15:10:19 +0200 Subject: [PATCH] working build for test-project and test-project-externalLib --- test-project-externalLib/.mps/libraries.xml | 10 +--------- test-project-externalLib/build.gradle.kts | 5 +++++ .../models/DependsOnMpsExtensions.structure.mps | 1 - test-project/build.gradle.kts | 4 ++++ test-project/build.xml | 12 +++++++----- .../test-project.build/models/test-project.build.mps | 8 ++++---- 6 files changed, 21 insertions(+), 19 deletions(-) diff --git a/test-project-externalLib/.mps/libraries.xml b/test-project-externalLib/.mps/libraries.xml index 27601f8..8e36ae3 100644 --- a/test-project-externalLib/.mps/libraries.xml +++ b/test-project-externalLib/.mps/libraries.xml @@ -6,19 +6,11 @@ - - - - - - - diff --git a/test-project-externalLib/build.gradle.kts b/test-project-externalLib/build.gradle.kts index 2dd8c6c..1fe7e4f 100644 --- a/test-project-externalLib/build.gradle.kts +++ b/test-project-externalLib/build.gradle.kts @@ -23,6 +23,11 @@ dependencies { "generation"("de.itemis.mps:extensions:$mpsExtensionsVersion") } +tasks.assembleMps { + antProperties.putAll(antProperties.get()) + antProperties.put("mps-extensions.home", "${projectDir.resolve("build/dependencies/de.itemis.mps.extensions")}") +} + task("runCommandLineTool") { dependsOn("resolveGenerationDependencies") diff --git a/test-project-externalLib/languages/DependsOnMpsExtensions/models/DependsOnMpsExtensions.structure.mps b/test-project-externalLib/languages/DependsOnMpsExtensions/models/DependsOnMpsExtensions.structure.mps index e4e54ef..f8b9c7d 100644 --- a/test-project-externalLib/languages/DependsOnMpsExtensions/models/DependsOnMpsExtensions.structure.mps +++ b/test-project-externalLib/languages/DependsOnMpsExtensions/models/DependsOnMpsExtensions.structure.mps @@ -2,7 +2,6 @@ - diff --git a/test-project/build.gradle.kts b/test-project/build.gradle.kts index 04ba875..1a3c729 100644 --- a/test-project/build.gradle.kts +++ b/test-project/build.gradle.kts @@ -21,6 +21,10 @@ dependencies { "generation"("io.lionweb.lionweb-mps:lionweb-mps-$mpsVersionSuffix-lw$lionwebRelease:$lionwebVersion") } +tasks.generateBuildscript { + args("--macro=lionweb-mps.home::${projectDir.parent}") +} + task("runCommandLineTool") { dependsOn("resolveGenerationDependencies") diff --git a/test-project/build.xml b/test-project/build.xml index a21ede6..9090457 100644 --- a/test-project/build.xml +++ b/test-project/build.xml @@ -4,10 +4,10 @@ - - + + - + @@ -82,6 +82,7 @@ + @@ -163,6 +164,7 @@ + @@ -238,8 +240,8 @@ - - + + diff --git a/test-project/solutions/test-project.build/models/test-project.build.mps b/test-project/solutions/test-project.build/models/test-project.build.mps index 6bb06b4..f3b11e9 100644 --- a/test-project/solutions/test-project.build/models/test-project.build.mps +++ b/test-project/solutions/test-project.build/models/test-project.build.mps @@ -133,7 +133,7 @@ - + @@ -147,9 +147,9 @@ - + - + @@ -161,7 +161,7 @@ - +