Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Individuall deployment folder for generated files (xtend2/xtext2)
Individuall deployment folder for generated files (xtend2/xtext2) [message #893771] Thu, 05 July 2012 13:36 Go to next message
Hannes Müller is currently offline Hannes MüllerFriend
Messages: 24
Registered: June 2012
Junior Member
Hello everyone

One (easy) question: When you define a metamodel via xtext and write your generator via xtend and than write your model file (e.g. 'foo.myDSL') in a src folder - the generated files are placed in the nearby src-gen folder. I didn't find an fitting entry in the mwe2-file (I know that you could customize your older here if you used the xpand technology).

But I want to deploy the files to the folder of their projects so that I must not copy those files after each generation. Is it possible to customize the folder? And does this folder will be cleaned before the new files will be deployed to the customized folder.

Thanks for any answer
Hannes
Re: Individuall deployment folder for generated files (xtend2/xtext2) [message #893864 is a reply to message #893771] Thu, 05 July 2012 17:55 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

targeting the IDE IOutputConfigurationProvider is you friend.
standalone (mwe) there is only a very basic support for output config

	component = org.eclipse.xtext.generator.GeneratorComponent {
		register = org.xtext.example.mydsl.MyDslStandaloneSetup {}
		slot = 'model'
		outlet = {
			path = targetDir
		}
	}


for the cleaning you have to care yourself using the directoycleaner component

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Backward compatibilty of xtext versions in the future expectable?
Next Topic:Newbie question on round tripping
Goto Forum:
  


Current Time: Thu Apr 25 02:06:35 GMT 2024

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

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

Back to the top