Skip to main content


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 19:53 Go to next message
Matthieu  is currently offline Matthieu Friend
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 08:06 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
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
Previous Topic:[Xtend] Casting doesn't work
Next Topic:[Xtend] Accessing EClass of a model element?
Goto Forum:
  


Current Time: Thu Apr 25 14:23:08 GMT 2024

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

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

Back to the top