|
Re: [Xtext 2.0 / Xtend2] Missing methods in API [message #684802 is a reply to message #684527] |
Thu, 16 June 2011 09:00 |
|
On 06/15/2011 08:33 PM, Jos Warmer wrote:
> Hi,
>
> I am using the generated Xtend generator class (implements IGenerator).
> This uses an JavaIOFileSystemAccess class for actual generation of
> files. The JavaIOFileSystemAccess has a method to set the output path,
> that I use.
> Later in the generation I want to retrieve the output path from the
> JavaIOFileSystemAccess object, but there is no getter for the output
> path. I need this to find out whether files already exist and add
> special handling for that.
> Is there a way to get the output path from the JavaIOFileSystemAccess,
> or do I need to put an enhancement request in?
>
> Jos
Concerning this issue: how can you modify the default behavior of the
generator so that it uses a different target folder? I mean the
behavior of the generation that is triggered automatically when you save
a file of your DSL (and it uses the src-gen by default).
thanks in advance
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03377 seconds