Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xbase-drived DSL - Eclipse codegen build on-demand(How to turn off auto-build for Xbase-driven DSL codegen)
Xbase-drived DSL - Eclipse codegen build on-demand [message #1780608] Wed, 24 January 2018 15:05 Go to next message
Oleg Cohen is currently offline Oleg CohenFriend
Messages: 22
Registered: August 2016
Junior Member
Greetings,

I have built a DSL that is derived from Xbase and the codegen is based on IJvmModelInferrer.

I have a question on how I can turn off the auto-build in Eclipse and generate code by using a custom command.

I did create a command but it appears the build triggered by the command only works properly if the XtextBuilder is set on the project and is active.

My problem is that the auto-build triggers every time the dependent projects are updated and there is a cascading codegen that is time-consuming and doesn't really do anything new as the DSL model didn't change.

I would appreciate any pointers on how it can be accomplished.

Thank you!
Oleg
Re: Xbase-drived DSL - Eclipse codegen build on-demand [message #1780612 is a reply to message #1780608] Wed, 24 January 2018 15:22 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12187
Registered: July 2009
Senior Member
xtext builder is needed but you should remove the builderparticipant from plugin.xml to avoid auto generation.

Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Debugging DSL code
Next Topic:Which Platform Version do you use with Xtext
Goto Forum:
  


Current Time: Sun Aug 19 04:16:59 GMT 2018

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

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

Back to the top