Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext + Xtend 2: Avoid re-generation of deleted class?
Xtext + Xtend 2: Avoid re-generation of deleted class? [message #755021] Sun, 06 November 2011 21:23 Go to next message
Volker Wegert is currently offline Volker WegertFriend
Messages: 182
Registered: July 2009
Senior Member
Hello,

I've used Xtend 2 to code the ScopeProvider implementation of an Xtext
project. In order to do so, I have removed the original class from the
src/ folder and replaced it with an .xtend file. The class is then
generated in the xtend-gen/ folder. Fine so far.

When re-executing the MWE workflow to regenerate the Xtext components,
the original java file is recreated right beside the .xtend file. This
leads to a compile error in the file generated by Xtend because the
class already exists.

Can I suppress the generation of this class by Xtext? If this is not
possible, can I delete the generated file from within the workflow?

Thanks
Volker

--
* Volker Wegert * http://www.volker-wegert.de/contact *
Re: Xtext + Xtend 2: Avoid re-generation of deleted class? [message #755022 is a reply to message #755021] Sun, 06 November 2011 21:41 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

 fragment = scoping.ImportNamespacesScopingFragment {
            	generateStub = false
            }


~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:How to automatically import "java.lang.*"
Next Topic:define overloaded method/operation name
Goto Forum:
  


Current Time: Thu Apr 25 10:33:54 GMT 2024

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

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

Back to the top