Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » embedded XPand tools in an application
embedded XPand tools in an application [message #543566] Tue, 29 June 2010 15:53 Go to next message
Matthieu  is currently offline Matthieu
Messages: 10
Registered: February 2010
Junior Member
Hello,

As I designed a language using XText and have some XPand templates and an MWE workflow to generate some codes, I would like now to create an external application (in java) that takes an input file written using my DSL, and that output the result of the workflow.

I want to do that without Eclipse, of course, just assuming the Jar executable run on a machine that just have a java VM.

Is it possible, and if yes how?

Thanks!

Matthieu
Re: embedded XPand tools in an application [message #544653 is a reply to message #543566] Mon, 05 July 2010 04:06 Go to previous message
Sven Efftinge is currently offline Sven Efftinge
Messages: 1759
Registered: July 2009
Senior Member
Matthieu schrieb:
> Hello,
>
> As I designed a language using XText and have some XPand templates and
> an MWE workflow to generate some codes, I would like now to create an
> external application (in java) that takes an input file written using my
> DSL, and that output the result of the workflow.
>
> I want to do that without Eclipse, of course, just assuming the Jar
> executable run on a machine that just have a java VM.
>
> Is it possible, and if yes how?

Yes. See
http://zarnekow.blogspot.com/2010/06/how-to-deploy-xtext-sta ndalone.html
for the easiest way to package it.

org.eclipse.emf.mwe.core.WorkflowRunner (for mwe) as well as
org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher (for mwe2) can be
called from command line.

Sven


--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de


--
Need professional support on Xtext or Xtend?
Mail to: xtext (at) itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Previous Topic:[Xtend] Casting doesn't work
Next Topic:[Xtend] Accessing EClass of a model element?
Goto Forum:
  


Current Time: Sat Jul 26 13:22:24 EDT 2014

Powered by FUDForum. Page generated in 0.01908 seconds