Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Deployment of generator plugins
Deployment of generator plugins [message #55579] Fri, 03 July 2009 13:59 Go to next message
Eclipse UserFriend
I've been piloting an XText based MDD tool-chain, and I have a few
questions about how to release my stuff to my developers.

First to give you an idea of what I had in mind.

I have a range of Xtext DSLs, m2m/m2t transformations (Xtend/Xpand) that
are working nicely in the "generator" projects I get when I create a new
Xtext project. I can imagine easily parameterising the MWEs for these
plugins to take any model file (of the correct language) and generatar to
anywhere.

I would like developers to be able take a distribution of eclipse with my
plugins installed, and then be able to create new (Java) projects, and
create a minimum of files (just the required models, ideally), then be
able to somehow invoke my generator plugins to get code generated locally
in their project's src-gen folder (for example).

One (probably naive) approach would be to write a "wrapper" plugin that
can invoke my MWE with the correct parameters (I see other threads in this
group that show me how to do that from Java).

Another, better, way would be to be able to invoke an MWE in the Java
project that perhaps imported my generic one and parameterised it.

I thought this might be possible when I saw the option to "Add Xtend/Xpand
nature", and was able to invoke a simple MWE file in that project (via Run
as MWE Workflow). It immediately fell over with an error about
WorkflowRunner not being on the classpath.

Obviously I could get this to work by putting the relevant jars (including
my own plugins) on the classpath of the project, but that's not the
intention I'm sure.

Am I going about this totally the wrong way? Is the Run as MWE Workflow
option just for developing the plugins?

In the long run it would be nice to be able to trigger the code generation
outside the IDE, so perhaps my best bet would be to create a simple Ant
Task that runs WorkflowFacade.run() - that way I can create a set of
importable ant tasks that use my various generators, setting the correct
classpath in each case, and let developer projects import those so they
can have simple ant files in their own projects.

What are your thoughts?
Re: Deployment of generator plugins [message #55607 is a reply to message #55579] Fri, 03 July 2009 14:08 Go to previous message
Eclipse UserFriend
Oh - okay - I've found the OAW documentation on invoking MWE from the
command line and from ant. Typically seconds after posting the question.

I think I'll be able to adapt that to TMF Xtext/MWE stuff. Thanks!
Previous Topic:[xText] Error indexin EPackages from registry
Next Topic:Re: first time problem running workflow (mwe 0.7.0)
Goto Forum:
  


Current Time: Fri Apr 25 00:54:56 EDT 2025

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

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

Back to the top