Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Codegeneration next to DSL
Codegeneration next to DSL [message #763827] Sat, 10 December 2011 17:20 Go to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6549
Registered: July 2009
Senior Member
Hi,

I could not find out how I can make the generator (IGenerator) create
output files next to the original DSL-File and don't mark them as derived?

Can someone help me on this?

Tom
Re: Codegeneration next to DSL [message #763841 is a reply to message #763827] Sat, 10 December 2011 17:56 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13427
Registered: July 2009
Senior Member
Hi,

have a look at IOutputConfigurationProvider. it allows e.g. conf of
- OutputDirectory
- SetDerivedProperty
and others

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Codegeneration next to DSL [message #763847 is a reply to message #763841] Sat, 10 December 2011 18:15 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6549
Registered: July 2009
Senior Member
Hi,

I should have mentionned that that I already found this but it requires
me as far as I can see to hard code the directory but I'd like the value
to be derived from the location of the original file.

e.g. the dsl file is located in src/java/my/test/My.fxgraph which means
the src-directory in this case is "src/java" so I'm not sure how I could
do this kind of thing.

Tom

Am 10.12.11 18:56, schrieb Christian Dietrich:
> Hi,
>
> have a look at IOutputConfigurationProvider. it allows e.g. conf of
> - OutputDirectory
> - SetDerivedProperty
> and others
>
> ~Christian
Re: Codegeneration next to DSL [message #763849 is a reply to message #763847] Sat, 10 December 2011 18:17 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13427
Registered: July 2009
Senior Member
Hi,

dont get your point. configure the generation root to your project dir.
the rest is a question of your implementation of IGenerator.

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Codegeneration next to DSL [message #763854 is a reply to message #763849] Sat, 10 December 2011 18:30 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6549
Registered: July 2009
Senior Member
Hi,

Ah ok I think I now get your point instead of pointing to the source-dir
I use the root path of the project. That makes sense. I'll give it a try
later on.

Thanks

Tom

Am 10.12.11 19:17, schrieb Christian Dietrich:
> Hi,
>
> dont get your point. configure the generation root to your project dir.
> the rest is a question of your implementation of IGenerator.
>
> ~Christian
Previous Topic:importURI
Next Topic:Scope Provider: Context
Goto Forum:
  


Current Time: Thu Apr 09 18:28:58 GMT 2020

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

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

Back to the top