Skip to content

Commit 012a0ea

Browse files
committed
fix(bulk-model-sync-gradle): correctly check for module instances
1 parent 25ca9bc commit 012a0ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bulk-model-sync-gradle/src/main/kotlin/org/modelix/model/sync/bulk/gradle/tasks/ExportFromModelServer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ abstract class ExportFromModelServer @Inject constructor(of: ObjectFactory) : De
9999
val nameRole = BuiltinLanguages.jetbrains_mps_lang_core.INamedConcept.name
100100

101101
return root.allChildren.filter {
102-
val isModule = it.concept == BuiltinLanguages.MPSRepositoryConcepts.Module
102+
val isModule = it.concept?.getUID() == BuiltinLanguages.MPSRepositoryConcepts.Module.getUID()
103103
val moduleName = it.getPropertyValue(nameRole) ?: return@filter false
104104
val isIncluded = isModuleIncluded(moduleName, includedModules.get(), includedModulePrefixes.get())
105105

0 commit comments

Comments
 (0)