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

Bug 365877

Summary: Xtend builder should detect when generated files are deleted
Product: [Tools] Xtend Reporter: Vlad Dumitrescu <vladdu55>
Component: BacklogAssignee: Project Inbox <xtend-inbox>
Status: REOPENED --- QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow, sven.efftinge
Version: 2.2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Vlad Dumitrescu CLA 2011-12-07 08:11:41 EST
If the java file generated from an xtend file is deleted, the builder
doesn't catch the change and doesn't recompile. This means that one has
to explicitly do a "clean" or "build" on the project after doing a "git
clone" or "git clean", which is less than user-friendly IMHO.
Comment 1 Sebastian Zarnekow CLA 2011-12-07 08:15:30 EST
I think that's ok, since JDT does not recompile manually deleted classfiles either. Please reopen if I missed your point.
Comment 2 Vlad Dumitrescu CLA 2011-12-07 08:29:02 EST
If I have a Java project open and do a "git clean -fdx" in the console and refresh the project, then it is rebuilt. This doesn't happen with the java files generated by xtend.
Comment 3 Sven Efftinge CLA 2011-12-07 08:30:23 EST
In the case of JDT it's transparent, since there are no compile errors. Also as soon as one file get's a change everything is build again. With Xtend, any Java sources 'referencing' Xtend files get markers. 

We should investigate to make this smoother.