Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Providing an Xtext project as (self-contained) library
Providing an Xtext project as (self-contained) library [message #652620] Fri, 04 February 2011 18:08 Go to next message
Franz-Stefan Mising name is currently offline Franz-Stefan Mising nameFriend
Messages: 12
Registered: December 2010
Junior Member
Hi, in the last weeks I have developed an Xtext project for my own DSL that supports complex expressions similar to the ones of the Arithmetics example: org.eclipse.xtext.example.arithmetics.

On top of my language I then have (amongst others):
a) established a type system by means of the Xtext typesystem framework ( http://code.google.com/a/eclipselabs.org/p/xtext-typesystem/), and
b) created an interpreter (by means of the PolymorphicDispatcher) that evaluates a given expression to a concrete value.
(Thanks to the excellent Xtext documentation all this went very well btw :-)

Now there is the requirement that I have to offer the evaluation functionality of my interpreter (and ideally also the type validation functionality) to a customer.
Our customer is running his own (Java web-)server infrastructure and this one needs to call a method of my interpreter class (thus, there is no Eclipse running).
So, my main question is now: How can I provide my functionality to our customer??
I have test cases that simulate all necessary function calls in standalone mode, I just don't know how I can 'ship' my application to the customer.

Ideally, I could create a (possibly self-contained) library in the form of a jar-file (or, multiple jar-files) that contains my project and that I give to our customer.
Clearly, this library would have to contain parts of EMF and Eclipse (as the DSL model is based on EMF and EMF depends on Eclipse) but that is fine as long as it is working.
Would it be possible to create such a library? If not, does anybody have suggestions on how I can solve my problem?

Thank you!
Re: Providing an Xtext project as (self-contained) library [message #652693 is a reply to message #652620] Sat, 05 February 2011 13:00 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

yes this is possible. one approach is described at http://zarnekow.blogspot.com/2010/06/how-to-deploy-xtext-sta ndalone.html

~ Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:How to use a custom XtextResourceSet
Next Topic:shipping predifind templates with your editor
Goto Forum:
  


Current Time: Fri Apr 26 11:32:47 GMT 2024

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

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

Back to the top