Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Usage of generators
Usage of generators [message #536550] Fri, 28 May 2010 15:59 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 350
Registered: July 2009
Senior Member
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 #536558 is a reply to message #536550] Fri, 28 May 2010 16:21 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
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
>
>
Re: Usage of generators [message #536592 is a reply to message #536558] Fri, 28 May 2010 19:48 Go to previous message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 350
Registered: July 2009
Senior Member
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
>>
>>
Previous Topic:Eclipse target platform, workspace components and 3rd party bundles / JARS
Next Topic:Strange errors with Resource Map editor
Goto Forum:
  


Current Time: Thu Aug 05 22:27:56 GMT 2021

Powered by FUDForum. Page generated in 0.05723 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top