Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365877 - Xtend builder should detect when generated files are deleted
Summary: Xtend builder should detect when generated files are deleted
Status: REOPENED
Alias: None
Product: Xtend
Classification: Tools
Component: Backlog (show other bugs)
Version: 2.2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-07 08:11 EST by Vlad Dumitrescu CLA
Modified: 2012-11-08 04:42 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.