Bug 21519 - Problems Deleting JAR library [ccp] [build path]
Summary: Problems Deleting JAR library [ccp] [build path]
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Adam Kiezun CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2002-07-12 05:14 EDT by andrea CLA
Modified: 2003-02-03 12:04 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andrea CLA 2002-07-12 05:14:53 EDT
Hi Guyes,

One of my team colleagues is developing an application using Eclipse 2.0 

java.version=1.3.1
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -install
file:D:/eclipse/
!ENTRY org.eclipse.ui 4 4 Jun 04, 2002 10:40:25.470
!MESSAGE Unable to find Action Set:
org.eclipse.jdt.ui.refactoring.actionSet
!ENTRY org.eclipse.team.cvs.core 4 4 Jun 04, 2002 11:29:58.395
!MESSAGE Project JBossClient does not contain CVS folder meta-information
!ENTRY org.eclipse.team.cvs.core 4 4 Jun 04, 2002 11:29:58.395
!MESSAGE Project JBossServer does not contain CVS folder meta-information
!SESSION Jun 04, 2002 13:41:05.177
---------------------------------------------
Sistema NT 4.0
Service Pack5
Versione Eclipse 2.0 (RE)
---------------------------------------------

He has tryed to delete a jar library from "Package Explorer" but, even if
eclipse deleted it from the tree view, the jar file was already present in
libraries tab of the "Java Build Path" and it has created some problems.

We would like to know how to delete, safely, a JAR library.

Best Regards,

Andrea
Comment 1 Philipe Mulet CLA 2002-07-17 03:29:07 EDT
Can you provide exact steps to reproduce this defect ? The log you pasted  
doesn't show any information relevant to this issue (unfortunately).
Comment 2 andrea CLA 2002-07-25 03:20:30 EDT
Sorry for my late but I was on hollidy.

The steps of the operation was:

1) Deleting a jar library from "Package Explorer"
2) Modifing the code files and trying to rebuild the project

The project did not rebuild because The "deleted" jar file was yet present in
libraries tab of the "Java Build Path".
Comment 3 Philipe Mulet CLA 2002-07-25 10:55:28 EDT
When a resource is deleted, we do not update the classpath by removing any 
entry targeting it. We experimented removing, but when doing updates 
(remove/add back) it would result in some classpath settings to be lost.

You can manually go and fix the classpath of the project, or turn off the check 
for building in presence of classpath issues (see 
Window>Preferences>Java>Compiler>Other>Stop building when an invalid classpath 
is detected).

Now, maybe UI could trap the deletion and optionally offer to fix-up the 
classpath for you ? Passing along to JDT/UI as there is no action planned in 
JDT/Core.
Comment 4 Dirk Baeumer CLA 2002-07-26 11:45:26 EDT
When deleting an internal Jar that is referencesd by other projects we should 
show a dialog asking if Eclipse should also update the class path of the 
project referencing the internal Jar. That would give the user a better 
understanding about what is going to happen.
Comment 5 Adam Kiezun CLA 2003-02-03 12:04:53 EST
implemented now - you see a dialog saying that other projects reference the JAR