Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 240486

Summary: "Migrate JAR File" unavailable for Web App Libraries container
Product: [Eclipse Project] JDT Reporter: Maxx L. <maxxyme>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
Screenshot none

Description Maxx L. CLA 2008-07-11 08:59:20 EDT
Created attachment 107197 [details]
Screenshot

+++ This bug was initially created as a clone of Bug #182064 +++

Steps to reproduce:
1. Create a new Dynamic Web Project.
2. Add some library JARs in the WebContent/WEB-INF/lib directory.
3. Add the "Web App Libraries" library container to the Build Path of the project (either through right-click on the project, "Build Path" > "Add Libraries..." or directly from the "Build Path" page in the project properties).
4. Go to the "Build Path" page in the project properties.
5. Select a library included in the "Web App Libraries" container.
6. The "Migrate JAR File" action is not available.

More information:
This "Migrate JAR File" feature is available for JARs added solely to the build path through either:
Project "Properties" > Java Build Path > Libraries > "Add JARs..." button (then select the jar)
or
select a jar > right-click / context menu > Build Path > Add to build Path
Comment 1 Dani Megert CLA 2008-07-14 06:33:47 EDT
AFAIK you can select the JAR and then Refactor > Migrate JAR File...

*** This bug has been marked as a duplicate of bug 182064 ***
Comment 2 Maxx L. CLA 2008-07-15 03:50:08 EDT
> AFAIK you can select the JAR and then Refactor > Migrate JAR File...

As I included a screenshot, you can see it doesn't work.
Comment 3 Dani Megert CLA 2008-07-15 04:01:04 EDT
>As I included a screenshot, you can see it doesn't work.
Yes, I know. It's not working if the JAR is in a library. That's why it's a dup of bug 182064.