Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Generated code (What is never modified and can be ignored?)
Generated code [message #1787121] Sat, 19 May 2018 09:26 Go to next message
Alex Mising name is currently offline Alex Mising nameFriend
Messages: 149
Registered: March 2010
Senior Member
Hi,

I have noticed that xtext projects generally have 3 source folders:


  1. src/
  2. src-gen/
  3. xtend-gen/


Now, typically running the mwe2 to generate stuff, creates files in all 3 locations. Stuff in src/ is actually meant to be edited (e.g. the generated xtend file).

Is it safe to say that "src-gen" and "xtend-gen" are always overwritten (so they could be ignored and never be edited or imported into source control) but stuff under "src" should be imported and tracked?

Sorry for the very basic questions but it's the first time I'm using xtext seriously so in this case I want to set things up correctly.

Thanks
Re: Generated code [message #1787123 is a reply to message #1787121] Sat, 19 May 2018 10:19 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Short answer yes
*-gen is generated code

There might be reasons to track it with version
Control but often there are set to be ignored


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Generated code [message #1787140 is a reply to message #1787123] Sat, 19 May 2018 14:21 Go to previous message
Tamas Miklossy is currently offline Tamas MiklossyFriend
Messages: 157
Registered: February 2016
Senior Member
Placing the generated code under version control or exluding them from it have both advantages and disadvantages.
See the discussion of the Xtext team:
https://github.com/eclipse/xtext/issues/1066
Previous Topic:Validating x,y coordinates
Next Topic:Unsuccessful build using Maven due missing EMF classes
Goto Forum:
  


Current Time: Wed Apr 24 20:18:26 GMT 2024

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

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

Back to the top