Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » ecore model location(How to change the default path for ecore model generation)
ecore model location [message #1771584] Mon, 28 August 2017 11:03 Go to next message
Michal Zyla is currently offline Michal ZylaFriend
Messages: 18
Registered: August 2016
Junior Member
Hello,

I'm looking for a way to specify a target directory where the ecore and genmodel files will be generated. Is there some standard way of doing this?

Regards
Re: ecore model location [message #1771589 is a reply to message #1771584] Mon, 28 August 2017 11:15 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 607
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Set property 'ecoreModel' to the desired output path, e.g. the folder 'target' in the DSLs runtime project:

	component = XtextGenerator {
		configuration = {
			project = StandardProjectConfig {
				baseName = "org.xtext.example.mydsl"
				rootPath = rootPath
				createEclipseMetaData = true
				runtime = {
					ecoreModel = "${rootPath}/org.xtext.example.mydsl/target"
				}
			}
...
Re: ecore model location [message #1771590 is a reply to message #1771589] Mon, 28 August 2017 11:27 Go to previous message
Michal Zyla is currently offline Michal ZylaFriend
Messages: 18
Registered: August 2016
Junior Member
Thanks!
Previous Topic:ValueConverter
Next Topic:Programatically modify part of Editor's background color
Goto Forum:
  


Current Time: Sat Jul 21 00:13:33 GMT 2018

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

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

Back to the top