Bug 304977 - eol script for copying eugenia annotations from one version of a model to another
Summary: eol script for copying eugenia annotations from one version of a model to ano...
Status: NEW
Alias: None
Product: Epsilon
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Dimitris Kolovos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-08 07:38 EST by m kranz CLA
Modified: 2012-02-06 10:59 EST (History)
0 users

See Also:


Attachments
eol script+ant file+2 models (2.82 KB, application/octet-stream)
2010-03-08 07:38 EST, m kranz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description m kranz CLA 2010-03-08 07:38:11 EST
Created attachment 161281 [details]
eol script+ant file+2 models

hi dimitris

i attached both the script and the ant file for running it. there are also two versions of the filesystem.ecore from the eugenia example, the original one with annotations and a modified one without annotations and with a class name changed.
for testing just create a new project and put them into the model directory and the ant file in the main project dir.

the script prints a log of the copy process to the console, should be easy to see what was copied and what failed (in case classes/attributes etc. are missing in the new model version).
the script does not check for annotations in the new model, so running it twice will result in all annotations beeing copied again.
the script currently only checks for annotations in

- the root package
- classes
- references in classes
- attributes in classes

while i did some tests and it 'seems' to be working fine, i of course can't say for sure that it's bug free.
you can use and change it as you like.

cheers

marco