Summary: | Classes deleted in output folder not noticed after refresh giving CNF at runtime | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Timothy Mowlem <tmowlem> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED INVALID | QA Contact: | |
Severity: | major | ||
Priority: | P3 | CC: | jarthana, Olivier_Thomann |
Version: | 3.5 | ||
Target Milestone: | 3.7 M3 | ||
Hardware: | Macintosh | ||
OS: | Mac OS X - Carbon (unsup.) | ||
Whiteboard: |
Description
Timothy Mowlem
2010-10-05 06:51:08 EDT
This might be a duplicate of bug 325414. You could confirm this by trying refresh from Package Explorer view and see if it's working. If the project is built and you remove the .class files from the output folder, then it is expected to fail. "Project->Build Automatically" is used only to make sure that the project is built before you run. The builder doesn't check that the .class files for all types in the project exist before starting a build. This would be too slow. The builder has a state for each project and if no changes have been done to the project, there is nothing to build. Why do you want to remove .class files from the output folder once the project is built ? (In reply to comment #2) > If the project is built and you remove the .class files from the output folder, > then it is expected to fail. > "Project->Build Automatically" is used only to make sure that the project is > built before you run. > The builder doesn't check that the .class files for all types in the project > exist before starting a build. This would be too slow. The builder has a state > for each project and if no changes have been done to the project, there is > nothing to build. > Why do you want to remove .class files from the output folder once the project > is built ? Hello Olivier, Client uses multiple small projects and we import the source of those packages as a source dir. I wanted to edit one and get it to rebuild but sometimes the changes are not picked up. So I deleted the class files hoping that that would force a rebuild. I am obviously labouring under a mis-apprehension. Sometimes Eclipse is slow to notice changes in different parts of the UI. Occasionally it stubbornly refuses to notice changes even after multiple Refreshes or even restarting the app. (In reply to comment #3) > Client uses multiple small projects and we import the source of those packages > as a source dir. I wanted to edit one and get it to rebuild but sometimes the > changes are not picked up. So I deleted the class files hoping that that would > force a rebuild. I am obviously labouring under a mis-apprehension. How do you do the import ? Are you using the import feature or you directly unzip from the OS? Did you try to refresh the project ? If you want to force a rebuild, use the clean/rebuild mechanism. This will force a rebuild of the whole project. As you entered this bug report, I will close it as INVALID as there is no way we want to support the case where .class files are removed after the project is built. Closing as INVALID. Please reopen if you find a case where this happens without cleaning the output directory. Verified for 3.7M3 |