Skip to content

Commit

Permalink
Correct generated files cleanup workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoKlare committed Dec 17, 2021
1 parent 7b8df73 commit ca2c03b
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 17 deletions.
2 changes: 1 addition & 1 deletion releng/edu.kit.ipd.sdq.metamodels.demo.parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
<arguments>
<argument>/${project.basedir}/workflow/clean.mwe2</argument>
<argument>-p</argument>
<argument>workspaceRoot=/${maven.multiModuleProjectDirectory}</argument>
<argument>workspaceRoot=${maven.multiModuleProjectDirectory}</argument>
</arguments>
<classpathScope>compile</classpathScope>
<includePluginDependencies>true</includePluginDependencies>
Expand Down
75 changes: 59 additions & 16 deletions releng/edu.kit.ipd.sdq.metamodels.workflow/workflow/clean.mwe2
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

}

0 comments on commit ca2c03b

Please sign in to comment.