Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2018-04-13 12:57:47 +0000
committerEike Stepper2018-04-13 12:57:47 +0000
commit0bcf6ad1707430639cd95d484e516c28e6ad9263 (patch)
tree685137e6e7c9a890025007a93e926d0910659e35 /plugins
parentf2f3042368d546194de9444c4270a0d51eec4403 (diff)
downloadcdo-0bcf6ad1707430639cd95d484e516c28e6ad9263.tar.gz
cdo-0bcf6ad1707430639cd95d484e516c28e6ad9263.tar.xz
cdo-0bcf6ad1707430639cd95d484e516c28e6ad9263.zip
[Releng] Add Ant task to migrate GenModels
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/tasks/MigrateModelTask.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/tasks/MigrateModelTask.java b/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/tasks/MigrateModelTask.java
index ce7c2f9ada..01e24de19d 100644
--- a/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/tasks/MigrateModelTask.java
+++ b/plugins/org.eclipse.emf.cdo.migrator/src/org/eclipse/emf/cdo/internal/migrator/tasks/MigrateModelTask.java
@@ -10,6 +10,7 @@
*/
package org.eclipse.emf.cdo.internal.migrator.tasks;
+import org.eclipse.emf.cdo.internal.messages.Messages;
import org.eclipse.emf.cdo.internal.migrator.CDOMigratorUtil;
import org.eclipse.emf.codegen.ecore.genmodel.GenDelegationKind;
@@ -48,7 +49,15 @@ public class MigrateModelTask extends CDOTask
GenModel genModel = CDOMigratorUtil.getGenModel(modelPath);
GenDelegationKind featureDelegation = dynamicFeatureDelegation ? GenDelegationKind.DYNAMIC_LITERAL : GenDelegationKind.REFLECTIVE_LITERAL;
- String result = CDOMigratorUtil.adjustGenModel(genModel, featureDelegation);
- System.out.println(result);
+ String msg = CDOMigratorUtil.adjustGenModel(genModel, featureDelegation);
+ if (msg == null)
+ {
+ System.out.println(Messages.getString("MigrateAction_3"));
+ }
+ else
+ {
+ genModel.eResource().save(null);
+ System.out.println(Messages.getString("MigrateAction_4") + msg);
+ }
}
}

Back to the top