Bug 253871

Summary: Cleaning project does not refresh user libraries
Product: [Eclipse Project] JDT Reporter: Krzysztof Daniel <krzysztof.daniel>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: david_audel, krzysztof.daniel
Version: 3.4   
Target Milestone: 3.5 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Krzysztof Daniel CLA 2008-11-05 02:53:47 EST
Build ID:  I20081030-1917

Steps To Reproduce:
1. Create user library with external jar
2. Invalidate it renaming the parent folder of the jar
3. Add the user library to java project
4. Note the error message:
Project 'JP' is missing required library: 'C:\path\lib.jar'
5. Fix the path
6. Clean the project -> there is still an error

The user ends with a project which cannot be built.

WTP provides "Update EAR libraries" command which is able to refresh user libraries, but if someone uses clean Eclipse, this may be a problem.

The only way to build a project it to remove library, try to build the project, and then add library again.
Comment 1 Krzysztof Daniel CLA 2008-11-05 06:21:33 EST
I have found out that regular Refresh (F5) does the thing. 

This is not obvious for me - I found it in the javadoc.

I am leaving this bug open, lowering severity to enhancement.
Maybe it would be good to put this somewhere in the documentation, although closing as invalid is fine for me, too.
Comment 2 Jerome Lanneluc CLA 2008-11-13 13:06:36 EST
Indeed, Project > Clean cleans out the output of the various builders on the project. Its intent is not to refresh external libraries.

No action planned.
Comment 3 David Audel CLA 2008-12-09 04:25:36 EST
Verified for 3.5M4.