Bug 12957 - Copied resources out of synch
Summary: Copied resources out of synch
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-07 13:02 EDT by Dani Megert CLA
Modified: 2002-11-13 03:58 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 Dani Megert CLA 2002-04-07 13:02:56 EDT
The compiler generates class files and copies resources to the output folders.
The class files are ok but the copied resources are not in synch with the
Eclipse workspace. This generates errors when accessing them (e.g. when
exporting to a JAR).

Test Case:
1. JUnit with bin folder but no source folder
2. Rebuild all (auto-build on or off)
3. Open the Navigator and delete bin/junit/swingui/icons/
==> resource out of synch message.
Comment 1 Philipe Mulet CLA 2002-04-08 09:46:21 EDT
Could this be a platform bug ?
Comment 2 Kent Johnson CLA 2002-04-08 14:29:55 EDT
Could not reproduce.

Daniel: is this related to the daylight savings time change?
Comment 3 Dani Megert CLA 2002-04-09 04:30:14 EDT
I had it in a non-team related workspace.
Using J9.
I'll attach the workspace.
Comment 4 Dani Megert CLA 2002-04-09 06:29:22 EDT
It seems that I can't attach the ZIP (too large).
I'll send it via e-mail to you.
Comment 5 Kent Johnson CLA 2002-04-09 13:55:27 EDT
Your workspace does not have an icons directory in the source directory 
junit/swingui/ BUT it does have .class files in the source directories. Did you 
add the bin directory after the project was already built?

I added the icons directory to the source directory & removed the 
various .class files, then rebuilt the workspace. Then I deleted the icons from 
the bin directory with no problems.

When/how was the icons directory removed from the source directory 
junit/swingui/ but NOT the bin directory?

Its looks as if the source' icons were removed BUT not deleted from the bin 
directory causing the bin icons to become out of sync... I have had no luck 
trying to reproduce such a scenario.
Comment 6 Dani Megert CLA 2002-04-10 04:32:10 EDT
I guess it happened when I played around with the Output folder location.
I might also have changed the layout from using project as source folder to
using a source folder (and back).

The workspace you see has not been modified outside Eclipse. There might be a
problem with transition from src_folder to project_as_src_folder layout (and
back) and changing the output folder. But the builder also seems to have
trouble. When I first do a refresh from local then a rebuild and then try to
delete I get an out of synch. If I then refresh I can delete without problems.
Comment 7 Kent Johnson CLA 2002-04-10 15:41:54 EDT
But where did the icons directory go in the source folders?

You never deleted the icons from the source directory did you?
Comment 8 Dani Megert CLA 2002-04-11 03:44:35 EDT
It is possible that some got deleted since I used delete to test if the resource
was out of synch. If it wasn't then it got deleted.
Comment 9 Philipe Mulet CLA 2002-06-11 08:33:03 EDT
Defer
Comment 10 Philipe Mulet CLA 2002-07-25 06:59:45 EDT
Reopening
Comment 11 Philipe Mulet CLA 2002-07-25 07:01:02 EDT
Clearing resolution
Comment 12 Philipe Mulet CLA 2002-11-13 03:58:03 EST
Closing as not reproduceable in more than 6 months.