Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Using DSL outside Eclipse(How to generate java source from DSL in generate-sources phase by maven)
Using DSL outside Eclipse [message #1102993] Fri, 06 September 2013 09:24 Go to next message
Andreas  Flügge is currently offline Andreas FlüggeFriend
Messages: 26
Registered: July 2009
Junior Member
Hello,

I'm a little bit confused about what's the easiest way to get my DSL working outside Eclipse.

My DSL works fine (in Eclipse) and now I'd like to generate Java source from my DSL source files without Eclipse. I don't want to generate any of this Eclipse stuff!!!

I tried to export the generator as mentioned by Sebastian Zarnekow, but run in trouble with dependencies of third party libs.

Other solutions seem to be rather complex. Before spending more time in this issue I would like to ask this question:

Is there a simple way to generate source from my DSL files in the generate-sources phase of a maven build?

This is the once and only thing I wanna do! No Eclipse stuff, no plugins, no updatesite, ...

Thanks in advance,
Andreas
Re: Using DSL outside Eclipse [message #1103009 is a reply to message #1102993] Fri, 06 September 2013 09:38 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
The short answer: no.
The longer answer. If you need a jar containing all dependencies
create a main class in the mydsl project and run it once. Then use
the export -,> java -> runnable jar file wizard.

For the code calling standalonesetups traversing files or using the
reader component etc you have to care yourself

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Using DSL outside Eclipse [message #1196491 is a reply to message #1103009] Tue, 19 November 2013 12:50 Go to previous messageGo to next message
Paul Brillant is currently offline Paul BrillantFriend
Messages: 7
Registered: August 2013
Junior Member
Christian,

How to deploy a jar of a DSL A with references to elements of another DSL B ?
Thanks
Paul
Re: Using DSL outside Eclipse [message #1196508 is a reply to message #1196491] Tue, 19 November 2013 12:59 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Mark sure your Main method calls both stanalonesetups

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:[SOLVED] The feature 'eClassifier' of '...EGenericTypeImpl...' contains an unresolved proxy
Next Topic:Headless generator for a DSL with dependencies to another DSL
Goto Forum:
  


Current Time: Tue Apr 23 07:02:32 GMT 2024

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

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

Back to the top