Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Copying folders
Copying folders [message #855045] Tue, 24 April 2012 13:32 Go to next message
Roberto Jimenez is currently offline Roberto JimenezFriend
Messages: 17
Registered: March 2012
Junior Member
Hello, I need to generated a folder, in the src-gen where its generated the code from dsl files. I explain:

I have this folder in the computer:

../res


and inside it more folders and files.

And in the dsl project I have something like that:

../myProject/
src-gen/example.php
example.mydsl

I want to generate the folder res inside src-gen. Is it posible???

../myProject/
src-gen/
example.php
res/
example.mydsl
Re: Copying folders [message #855154 is a reply to message #855045] Tue, 24 April 2012 15:11 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 740
Registered: July 2009
Location: Dortmund, Germany
Senior Member

You have to configure an OutputConfiguration for folder /res by providing an customized IOutputConfiguration, bind it in the runtime module of your DSL project and generate at least one file to this output configuration. The IFileSystemAccess has a method which takes the output configuration name as a second argument.

Regards,
~Karsten


Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: Copying folders [message #870302 is a reply to message #855154] Mon, 07 May 2012 15:33 Go to previous message
Roberto Jimenez is currently offline Roberto JimenezFriend
Messages: 17
Registered: March 2012
Junior Member
Sorry, but I dont understand you. How and where can I do this???

Thanks a lot.
Previous Topic:Nested EPackage in ECore model cannot be imported in XText
Next Topic:using absolute path
Goto Forum:
  


Current Time: Mon Nov 30 08:59:11 GMT 2020

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

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

Back to the top