Red Hat Bugzilla – Bug 977333
Class folder in build path does not refresh properly
Last modified: 2013-08-06 12:14:22 EDT
Description of problem:
Eclipse class files conflict with ant builds when they are configured to go into the same folder. JUnit respons with ClassDefNotFoundException.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. use ant to build
2. try to run an application in Eclipse from the same folder
Raphael, would you please attach a sample project we can use for testing.
Created attachment 765535 [details]
eclipse vs. ant
→ JUnit Test: works
→ JUnit Test: ClassNotFound
Okay, problem is localized. If "ant clean" has been run, then Eclipse must be manually notified via "Clean Projects ..." and deactivated "Build Automatically". Using different folders for each Ant and Eclipse does not make any difference (strange!).
I am not sure if this is a real bug. Eclipse does not seem to monitor the output folder for external changes and may discard the internal cache.
Besides that, I can reproduce the behaviour on Mageia2 with Eclipse Version: 3.7.1, Build id: R3_7_1, so this bug should better be forwarded to upstream.