Usage of generators [message #536550] |
Fri, 28 May 2010 11:59  |
Eclipse User |
|
|
|
Hello,
does anybody know how to add generation of emf bundles from a given genmodel
can be done with Buckminster/Hudson? How can be defined that the bundles to
be generated are not fetched from repositories specified in the rmap file?
And how/when must the ant task be started, is it done automatically during
'perform' or should an additional action call be added to the build step?
Thanks for any suggestions.
Regards
Axel
|
|
|
|
Re: Usage of generators [message #536592 is a reply to message #536558] |
Fri, 28 May 2010 15:48  |
Eclipse User |
|
|
|
Hi Henrik,
thank you for these pointers. They were really helpful, now I coped with
getting the action (specified in the SPEX) called. Unfortunately the ant
task could not be found.
I extracted emf.ant.tasks.jar and moved it into my releng plugin. Then I
tried to reference it with a taskdef like shown below.
<taskdef name="emfGen"
classname="org.eclipse.emf.importer.ecore.taskdefs.EcoreGeneratorTask "
classpath="${WORKSPACE}/com.example.releng/util/emf.ant.tasks.jar;
${WORKSPACE}/com.example.releng/util/importer.ecore.tasks.ja r " />
Any idea what could be wrong here?
The error message is "taskdef class
org.eclipse.emf.importer.ecore.taskdefs.EcoreGeneratorTask cannot be found"
I wondered whether it could be possible to reference the target platform,
but any other approach is welcome, too.
Thanks in advance!
Axel
Henrik Lindberg wrote:
> Hi,
> how to use generators is in the buckminster documentation.
> Does not however show how to use it to generate bundles from models.
>
> In general:
> Add a CSPEX to the component that contains the genmodel.
> In this CSPEX add the information about the components that it is
> capable of generating.
> Add the actions that performs the generation.
>
> This means that when resolution takes place and the resolver has seen
> the component with the "generates" then it will know how to obtain them.
> The problem is making sure that the resolver sees these before something
> is requiring them - sometimes it is required to place the "generates" in
> a component that is "above" the others.
>
> - henrik
>
> On 5/28/10 5:59 PM, Axel Guckelsberger wrote:
>> Hello,
>>
>> does anybody know how to add generation of emf bundles from a given
>> genmodel can be done with Buckminster/Hudson? How can be defined that the
>> bundles to be generated are not fetched from repositories specified in
>> the rmap file? And how/when must the ant task be started, is it done
>> automatically during 'perform' or should an additional action call be
>> added to the build step?
>>
>> Thanks for any suggestions.
>>
>> Regards
>>
>> Axel
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03876 seconds