Skip to content

Commit 8edc5c4

Browse files
committed
fix(bulk-model-sync-gradle): avoid overwriting existing properties
1 parent 390a9ca commit 8edc5c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ abstract class ImportIntoModelServer @Inject constructor(of: ObjectFactory) : De
9999

100100
logger.info("Setting meta properties...")
101101
for ((key, value) in metaProperties.get()) {
102-
rootNode.setPropertyValue(IProperty.fromName(key), value)
102+
val property = IProperty.fromName(key)
103+
if (rootNode.getPropertyValue(property) == null) {
104+
rootNode.setPropertyValue(property, value)
105+
}
103106
}
104107
}
105108
logger.info("Sending diff to server...")

0 commit comments

Comments
 (0)