Home » Modeling » Epsilon » storing model from ant script
storing model from ant script [message #516603] |
Wed, 24 February 2010 14:34 |
m kranz Messages: 69 Registered: January 2010 |
Member |
|
|
hi dimitris
now that i am able to load a model from ant, i was trying to modify them, but my changes didn't show up in the model. guess i have to
store the model to make the changes visible?
i tried the following:
<project default="main">
<target name="main">
<epsilon.emf.loadModel
name = "Ecore_new"
modelfile="model/testing.ecore"
metamodeluri="http://www.eclipse.org/emf/2002/Ecore"
read="true"
store="false"/>
<epsilon.emf.loadModel
name = "Ecore_old"
modelfile="model/testing_old.ecore"
metamodeluri="http://www.eclipse.org/emf/2002/Ecore"
read="true"
store="false"/>
<epsilon.eol src="model/moveGMFAnnotations.eol">
<model ref="Ecore_new"/>
<model ref="Ecore_old"/>
</epsilon.eol>
<epsilon.storeModel
name = "Ecore_new"
/>
</target>
</project>
but it got an error stating that "epsilon.storeModel doesn't support the 'name' attribute".
in the book (p. 162) it says 'name' and 'target' are supported, so i guess there's something else i'm doing wrong here?
thanks in advance
marco
[Updated on: Wed, 24 February 2010 14:35] Report message to a moderator
|
|
| | | | |
Re: storing model from ant script [message #518081 is a reply to message #517924] |
Tue, 02 March 2010 23:17 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Hi Marco,
Thanks! Could you please open a bugzilla, attach the script there
(preferably with a sample model to go with it) and post the link here?
Cheers,
Dimitris
Marco.Kranz@fokus.fraunhofer.de wrote:
> i'll send you the result if you're interested. nothing special, but it
> gets the job done.
>
> Dimitrios Kolovos wrote on Wed, 24 February 2010 13:05
>> Hi Marco,
>>
>> Not that I'm aware of, but it would be a welcome contribution!
>>
>> Cheers,
>> Dimitris
>>
>> Marco.Kranz@fokus.fraunhofer.de wrote:
>> > thanks dimitris, it works. :)
>> > i'm working on a script to copy the eugenia annotations from an old
>> > model version to a new one, since our .ecore files are generated. so
>> for > every change we have to reapply all annotations...
>> > just out of curiousity, there isn't something like this out there
>> already?
>
>
|
|
| | | | | | |
Re: storing model from ant script [message #586950 is a reply to message #586943] |
Tue, 02 March 2010 23:17 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Hi Marco,
Thanks! Could you please open a bugzilla, attach the script there
(preferably with a sample model to go with it) and post the link here?
Cheers,
Dimitris
Marco.Kranz@fokus.fraunhofer.de wrote:
> i'll send you the result if you're interested. nothing special, but it
> gets the job done.
>
> Dimitrios Kolovos wrote on Wed, 24 February 2010 13:05
>> Hi Marco,
>>
>> Not that I'm aware of, but it would be a welcome contribution!
>>
>> Cheers,
>> Dimitris
>>
>> Marco.Kranz@fokus.fraunhofer.de wrote:
>> > thanks dimitris, it works. :)
>> > i'm working on a script to copy the eugenia annotations from an old
>> > model version to a new one, since our .ecore files are generated. so
>> for > every change we have to reapply all annotations...
>> > just out of curiousity, there isn't something like this out there
>> already?
>
>
|
|
| | |
Goto Forum:
Current Time: Mon Sep 23 10:31:11 GMT 2024
Powered by FUDForum. Page generated in 0.04974 seconds
|