From ca2c03b25ddac9107bf3e37289d4ecc65ecb80ba Mon Sep 17 00:00:00 2001 From: Heiko Klare Date: Fri, 17 Dec 2021 17:16:08 +0100 Subject: [PATCH] Correct generated files cleanup workflow --- .../pom.xml | 2 +- .../workflow/clean.mwe2 | 75 +++++++++++++++---- 2 files changed, 60 insertions(+), 17 deletions(-) diff --git a/releng/edu.kit.ipd.sdq.metamodels.demo.parent/pom.xml b/releng/edu.kit.ipd.sdq.metamodels.demo.parent/pom.xml index 17cf072..6cdcb8f 100644 --- a/releng/edu.kit.ipd.sdq.metamodels.demo.parent/pom.xml +++ b/releng/edu.kit.ipd.sdq.metamodels.demo.parent/pom.xml @@ -167,7 +167,7 @@ /${project.basedir}/workflow/clean.mwe2 -p - workspaceRoot=/${maven.multiModuleProjectDirectory} + workspaceRoot=${maven.multiModuleProjectDirectory} compile true diff --git a/releng/edu.kit.ipd.sdq.metamodels.workflow/workflow/clean.mwe2 b/releng/edu.kit.ipd.sdq.metamodels.workflow/workflow/clean.mwe2 index c516069..27e940c 100644 --- a/releng/edu.kit.ipd.sdq.metamodels.workflow/workflow/clean.mwe2 +++ b/releng/edu.kit.ipd.sdq.metamodels.workflow/workflow/clean.mwe2 @@ -2,31 +2,74 @@ module clean import org.eclipse.emf.mwe.utils.DirectoryCleaner -var rootPath = ".." var addressesPluginName = "edu.kit.ipd.sdq.metamodels.addresses" var familiesPluginName = "edu.kit.ipd.sdq.metamodels.families" var insurancePluginName = "edu.kit.ipd.sdq.metamodels.insurance" var personsPluginName = "edu.kit.ipd.sdq.metamodels.persons" var recipientsPluginName = "edu.kit.ipd.sdq.metamodels.recipients" +var workspaceRoot = "../../" + Workflow { component = DirectoryCleaner { - directory = "${rootPath}/${addressesPluginName}/src-gen" - directory = "${rootPath}/${addressesPluginName}.edit/src-gen" - directory = "${rootPath}/${addressesPluginName}.editor/src-gen" - directory = "${rootPath}/${familiesPluginName}/src-gen" - directory = "${rootPath}/${familiesPluginName}.edit/src-gen" - directory = "${rootPath}/${familiesPluginName}.editor/src-gen" - directory = "${rootPath}/${insurancePluginName}/src-gen" - directory = "${rootPath}/${insurancePluginName}.edit/src-gen" - directory = "${rootPath}/${insurancePluginName}.editor/src-gen" - directory = "${rootPath}/${personsPluginName}/src-gen" - directory = "${rootPath}/${personsPluginName}.edit/src-gen" - directory = "${rootPath}/${personsPluginName}.editor/src-gen" - directory = "${rootPath}/${recipientsPluginName}/src-gen" - directory = "${rootPath}/${recipientsPluginName}.edit/src-gen" - directory = "${rootPath}/${recipientsPluginName}.editor/src-gen" + directory = "${workspaceRoot}/bundles/${addressesPluginName}/src-gen" + } + + component = DirectoryCleaner { + directory = "${workspaceRoot}/bundles/${addressesPluginName}.edit/src-gen" + } + + component = DirectoryCleaner { + directory = "${workspaceRoot}/bundles/${addressesPluginName}.editor/src-gen" + } + + component = DirectoryCleaner { + directory = "${workspaceRoot}/bundles/${familiesPluginName}/src-gen" + } + + component = DirectoryCleaner { + directory = "${workspaceRoot}/bundles/${familiesPluginName}.edit/src-gen" + } + + component = DirectoryCleaner { + directory = "${workspaceRoot}/bundles/${familiesPluginName}.editor/src-gen" + } + + component = DirectoryCleaner { + directory = "${workspaceRoot}/bundles/${insurancePluginName}/src-gen" + } + + component = DirectoryCleaner { + directory = "${workspaceRoot}/bundles/${insurancePluginName}.edit/src-gen" + } + + component = DirectoryCleaner { + directory = "${workspaceRoot}/bundles/${insurancePluginName}.editor/src-gen" + } + + component = DirectoryCleaner { + directory = "${workspaceRoot}/bundles/${personsPluginName}/src-gen" + } + + component = DirectoryCleaner { + directory = "${workspaceRoot}/bundles/${personsPluginName}.edit/src-gen" + } + + component = DirectoryCleaner { + directory = "${workspaceRoot}/bundles/${personsPluginName}.editor/src-gen" + } + + component = DirectoryCleaner { + directory = "${workspaceRoot}/bundles/${recipientsPluginName}/src-gen" + } + + component = DirectoryCleaner { + directory = "${workspaceRoot}/bundles/${recipientsPluginName}.edit/src-gen" + } + + component = DirectoryCleaner { + directory = "${workspaceRoot}/bundles/${recipientsPluginName}.editor/src-gen" } }