Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Changing Source Folders(How to use something different then 'src' and 'src-gen')
Changing Source Folders [message #899760] Thu, 02 August 2012 05:04 Go to next message
Eclipse UserFriend
HI there,

I am currently trying to convert an existing DSL using the current XText version into the shema of another project. Xtext uses the folders 'src' and 'src-gen' as standard folders. Our project followes another convention so we want to use 'src/main/java' and 'src/gen/java'. Is there any simple way of changing the source folders. I cant find any hint where the generators are picking the standard directories from. Crying or Very Sad

Cheers

Phil
Re: Changing Source Folders [message #899818 is a reply to message #899760] Thu, 02 August 2012 08:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi Phil,

set properties 'srcPath' and 'srcGenPath' to Xtext's Generator component.

component = Generator {
 srcPath = "src/main/java"
 srcGenPath = "src/gen/java"


And... derived sources should normally go below the target folder (target/gen/java), if you already follow Maven project structure conventions Wink

~Karsten
Re: Changing Source Folders [message #900540 is a reply to message #899760] Tue, 07 August 2012 08:51 Go to previous messageGo to next message
Eclipse UserFriend
Thanks...

That worked fine for me... Smile What about the xtend-gen folder... is there a way to redirect it as well? Seems like it is always placed relative to what is set in 'srcpath'.

Cheers

Phil
Re: Changing Source Folders [message #900542 is a reply to message #900540] Tue, 07 August 2012 08:59 Go to previous message
Eclipse UserFriend
Hi you should be able to configure it in your projects properties ->
Xtend -> compiler

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Previous Topic:scoping Problem?
Next Topic:Documentation for "new" serializer?
Goto Forum:
  


Current Time: Mon Jun 30 23:55:22 EDT 2025

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

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

Back to the top