Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354938

Summary: Generated files not cleaned up appropriately
Product: [Modeling] TMF Reporter: Vladimir Piskarev <vpiskarov>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 2.0.0Flags: sebastian.zarnekow: indigo+
Target Milestone: SR2   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
'example' project none

Description Vladimir Piskarev CLA 2011-08-17 07:08:17 EDT
Build Identifier: I20110613-1736

JavaProjectBasedBuilderParticipant does not save its 'sourceTargetMap' across Eclipse sessions. It may lead to generated files not being cleaned up appropriately.

Reproducible: Always

Steps to Reproduce:
1. Import the standard 'Xtext Domain-Model Example' projects into the
workspace.

2. Run the runtime workbench and import the attached 'example' project into the
runtime workspace. Restart the workbench after a clean build.

3. Open 'Foo.dmodel' and comment out the entire declaration of entity 'Foo'. Save the changes. Note that the earlier generated 'Foo.java' file still exists. Note that even a clean build is of no help here.
Comment 1 Vladimir Piskarev CLA 2011-08-17 07:09:53 EDT
Created attachment 201634 [details]
'example' project
Comment 2 Sebastian Zarnekow CLA 2011-08-17 07:35:39 EDT

*** This bug has been marked as a duplicate of bug 353464 ***
Comment 3 Vladimir Piskarev CLA 2011-08-17 07:47:18 EDT
Sorry about the duplicate. Was searching, but has not found it.
Comment 4 Sebastian Zarnekow CLA 2011-08-17 07:48:39 EDT
(In reply to comment #3)
> Sorry about the duplicate. Was searching, but has not found it.

No problem at all. Your high quality feedback is very appreciated.