[automation] Updated rule dsl filename to rule uid mapping (#2003)

use full filename without extension as uid for rules provided by DSL files
fix bug where rule filenames with common prefix and "." resulted in same uid

Signed-off-by: Leon Kiefer <leon.k97@gmx.de>
This commit is contained in:
Leon Kiefer 2020-12-25 13:58:31 +01:00 committed by GitHub
parent ce95ed191e
commit 49a17a5f5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,7 @@ public class DSLRuleProvider
@Override
public void modelChanged(String modelFileName, EventType type) {
String ruleModelName = modelFileName.substring(0, modelFileName.indexOf("."));
String ruleModelName = modelFileName.substring(0, modelFileName.lastIndexOf("."));
switch (type) {
case ADDED:
EObject model = modelRepository.getModel(modelFileName);