Bug 253871 - Cleaning project does not refresh user libraries
Summary: Cleaning project does not refresh user libraries
Status: VERIFIED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.5 M4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-05 02:53 EST by Krzysztof Daniel CLA
Modified: 2008-12-09 04:25 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 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.