How to invoke the code generation programmatically [message #468127] |
Tue, 04 August 2009 06:04  |
Eclipse User |
|
|
|
Hi all,
currently, i'm defining my own metamodel and i had to invoke the
model/edit/editor part generation step by hand. I guess, that it is also
possible to do this via an API programmatically within a ANT script
(some more batch steps like javadoc references, etc.).
Is there a tutorial or a hint, how to achieve this?
Thanks a lot
Timothy
|
|
|
|
|
Re: How to invoke the code generation programmatically [message #468140 is a reply to message #468127] |
Tue, 04 August 2009 06:43  |
Eclipse User |
|
|
|
Hi Timothy,
There are already emf tasks for doing this. Something along the lines of
<emf.Ecore2Java
genmodel="path/to/genmodel"
modelproject="path/to/modelProject"
modelprojectfragmentpath="src">
...
</emf.Ecore2Java>
Sorry I am not sure on the details. There are also XSD2Java, Rose2Java and
JET related tasks too.
I don't know of any tutorials but someone else might.
Hope that helps somewhat.
Tas.
"Timothy Marc" <timothymarc@freenet.de> wrote in message
news:h5913b$o9j$1@build.eclipse.org...
> Hi all,
>
> currently, i'm defining my own metamodel and i had to invoke the
> model/edit/editor part generation step by hand. I guess, that it is also
> possible to do this via an API programmatically within a ANT script (some
> more batch steps like javadoc references, etc.).
>
> Is there a tutorial or a hint, how to achieve this?
>
> Thanks a lot
> Timothy
|
|
|
Powered by
FUDForum. Page generated in 0.07850 seconds